1 {lib, stdenv, fetchFromGitHub, libunwind, cmake, pcre, gdb}:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-UTrAaH8C79km78Z/7NxvQ6dnl4u4Ki80nORf4bsoSNw=";
15 substituteInPlace src/igprof --replace libigprof.so $out/lib/libigprof.so
18 buildInputs = [libunwind gdb pcre];
19 nativeBuildInputs = [cmake];
20 CXXFLAGS = ["-fPIC" "-O2" "-w" "-fpermissive"];
23 broken = (stdenv.isLinux && stdenv.isAarch64);
24 description = "The Ignominous Profiler";
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.
38 license = lib.licenses.gpl2;
40 homepage = "https://igprof.org/";
41 platforms = lib.platforms.linux;
42 maintainers = with lib.maintainers; [ ktf ];