Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.7 KiB
Nix
57 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
libllvm,
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "pprof";
|
|
version = "0-unstable-2025-03-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "pprof";
|
|
rev = "9094ed2288e75ea6574fce30e1474932a96bb048";
|
|
hash = "sha256-pvjKxBHIL1wq24Hsq3UOtYh+MEH4G1dOSz4lEyiTPRc=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
libllvm
|
|
];
|
|
|
|
postPatch = ''
|
|
rm -rf browsertests # somewhat independent module to ignore.
|
|
'';
|
|
|
|
vendorHash = "sha256-oOjkjVb3OIGMwz3/85KTewXISpBZM3o1BfFG9aysFbo=";
|
|
|
|
meta = with lib; {
|
|
description = "Tool for visualization and analysis of profiling data";
|
|
homepage = "https://github.com/google/pprof";
|
|
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).
|
|
|
|
This is not an official Google product.
|
|
'';
|
|
mainProgram = "pprof";
|
|
maintainers = with maintainers; [ hzeller ];
|
|
};
|
|
}
|