Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 50 lines 1.7 kB view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "pprof"; 8 version = "0-unstable-2024-07-10"; 9 10 src = fetchFromGitHub { 11 owner = "google"; 12 repo = "pprof"; 13 rev = "f6c9dda6c6da638264f96f1097bce50fd82b4927"; 14 hash = "sha256-jxPl3e9aYRWyR7vkz+15aZiG331WnrNkMW8vwbcldfY="; 15 }; 16 17 postPatch = '' 18 rm -rf browsertests # somewhat independent module to ignore. 19 ''; 20 21 vendorHash = "sha256-oOjkjVb3OIGMwz3/85KTewXISpBZM3o1BfFG9aysFbo="; 22 23 meta = with lib; { 24 description = "Tool for visualization and analysis of profiling data"; 25 homepage = "https://github.com/google/pprof"; 26 license = licenses.asl20; 27 longDescription = '' 28 pprof reads a collection of profiling samples in profile.proto format and 29 generates reports to visualize and help analyze the data. It can generate 30 both text and graphical reports (through the use of the dot visualization 31 package). 32 33 profile.proto is a protocol buffer that describes a set of callstacks and 34 symbolization information. A common usage is to represent a set of sampled 35 callstacks from statistical profiling. The format is described on the 36 proto/profile.proto file. For details on protocol buffers, see 37 https://developers.google.com/protocol-buffers 38 39 Profiles can be read from a local file, or over http. Multiple profiles of 40 the same type can be aggregated or compared. 41 42 If the profile samples contain machine addresses, pprof can symbolize them 43 through the use of the native binutils tools (addr2line and nm). 44 45 This is not an official Google product. 46 ''; 47 mainProgram = "pprof"; 48 maintainers = with maintainers; [ hzeller ]; 49 }; 50}