nixpkgs/pkgs/development/tools/profiling/pprof/default.nix

45 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "pprof";
version = "unstable-2021-09-30";
src = fetchFromGitHub {
owner = "google";
repo = "pprof";
rev = "7fe48b4c820be13151ae35ce5a5e3f54f1b53eef";
sha256 = "05nr3igdigs1586qplwfm17hfw0v81jy745g6vayq7cbplljfjb1";
2017-08-28 16:12:40 +00:00
};
vendorSha256 = "0yl8y3m2ia3cwxhmg1km8358a0225khimv6hcvras8r2glm69h3f";
2017-08-28 16:12:40 +00:00
meta = with lib; {
2017-08-28 16:12:40 +00:00
description = "A tool for visualization and analysis of profiling data";
homepage = "https://github.com/google/pprof";
2017-08-28 16:12:40 +00:00
license = licenses.asl20;
longDescription = ''
pprof reads a collection of profiling samples in profile.proto format and
generates reports to visualize and help analyze the data. It can generate
both text and graphical reports (through the use of the dot visualization
package).
profile.proto is a protocol buffer that describes a set of callstacks and
symbolization information. A common usage is to represent a set of sampled
callstacks from statistical profiling. The format is described on the
proto/profile.proto file. For details on protocol buffers, see
https://developers.google.com/protocol-buffers
Profiles can be read from a local file, or over http. Multiple profiles of
the same type can be aggregated or compared.
If the profile samples contain machine addresses, pprof can symbolize them
through the use of the native binutils tools (addr2line and nm).
2017-08-28 16:12:40 +00:00
This is not an official Google product.
'';
};
}