2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pprof";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "unstable-2022-05-09";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "pprof";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "59ca7ad80af3faf4f87f4d82ff02f5d390c08ed6";
|
|
|
|
sha256 = "0jni73ila3glg7rl11v0al947d94dd0syhkjqnliaryh8dkxbx80";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
vendorSha256 = "0vr8jp3kxgadb73g67plfrl5dkxfwrxaxjs664918jssy25vyk2y";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool for visualization and analysis of profiling data";
|
|
|
|
homepage = "https://github.com/google/pprof";
|
|
|
|
license = licenses.asl20;
|
|
|
|
longDescription = ''
|
2021-10-17 09:34:42 +00:00
|
|
|
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).
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
This is not an official Google product.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|