at 23.11-beta 44 lines 1.5 kB view raw
1{lib, stdenv, fetchFromGitHub, libunwind, cmake, pcre, gdb}: 2 3stdenv.mkDerivation rec { 4 version = "5.9.18"; 5 pname = "igprof"; 6 7 src = fetchFromGitHub { 8 owner = "igprof"; 9 repo = "igprof"; 10 rev = "v${version}"; 11 sha256 = "sha256-UTrAaH8C79km78Z/7NxvQ6dnl4u4Ki80nORf4bsoSNw="; 12 }; 13 14 postPatch = '' 15 substituteInPlace src/igprof --replace libigprof.so $out/lib/libigprof.so 16 ''; 17 18 buildInputs = [libunwind gdb pcre]; 19 nativeBuildInputs = [cmake]; 20 CXXFLAGS = ["-fPIC" "-O2" "-w" "-fpermissive"]; 21 22 meta = { 23 broken = (stdenv.isLinux && stdenv.isAarch64); 24 description = "The Ignominous Profiler"; 25 26 longDescription = '' 27 IgProf is a fast and light weight profiler. It correctly handles 28 dynamically loaded shared libraries, threads and sub-processes started by 29 the application. We have used it routinely with large C++ applications 30 consisting of many hundreds of shared libraries and thousands of symbols 31 from millions of source lines of code. It requires no special privileges 32 to run. The performance reports provide full navigable call stacks and 33 can be customised by applying filters. Results from any number of 34 profiling runs can be included. This means you can both dig into the 35 details and see the big picture from combined workloads. 36 ''; 37 38 license = lib.licenses.gpl2; 39 40 homepage = "https://igprof.org/"; 41 platforms = lib.platforms.linux; 42 maintainers = with lib.maintainers; [ ktf ]; 43 }; 44}