diff options
Diffstat (limited to 'mod/tools/perf-flamegraph.nix')
| -rw-r--r-- | mod/tools/perf-flamegraph.nix | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mod/tools/perf-flamegraph.nix b/mod/tools/perf-flamegraph.nix deleted file mode 100644 index b472b74..0000000 --- a/mod/tools/perf-flamegraph.nix +++ /dev/null @@ -1,12 +0,0 @@ -# Script that collects perf timing for the execution of a command and writes a -# flamegraph to stdout -{ pkgs, ... }: - -pkgs.writeShellScriptBin "perf-flamegraph" '' - set -euo pipefail - - ${pkgs.linuxPackages.perf}/bin/perf record -g --call-graph dwarf -F max "$@" - ${pkgs.linuxPackages.perf}/bin/perf script \ - | ${pkgs.flamegraph}/bin/stackcollapse-perf.pl \ - | ${pkgs.flamegraph}/bin/flamegraph.pl -'' |
