2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pprof";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2024-05-09";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "pprof";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "723abb6459b72e964cbfb3f7064446bf3bb321dc";
|
|
|
|
hash = "sha256-zw9/xp5E5V/0D0pf5diWcx/SHX3ujwBtZNfH9tioiL0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-bQyloQPfweK4PlrkO1IcCFjyctj99e8C9mQbCj+HCXQ=";
|
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.
|
|
|
|
'';
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "pprof";
|
|
|
|
maintainers = with maintainers; [ hzeller ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|