summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/perf-flamegraph.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/perf-flamegraph.nix b/packages/perf-flamegraph.nix
index 780a280..92eb326 100644
--- a/packages/perf-flamegraph.nix
+++ b/packages/perf-flamegraph.nix
@@ -3,7 +3,7 @@
{
writeShellScriptBin,
- linuxPackages,
+ perf,
flamegraph,
...
}:
@@ -11,8 +11,8 @@
writeShellScriptBin "perf-flamegraph" ''
set -euo pipefail
- ${linuxPackages.perf}/bin/perf record -g --call-graph dwarf -F max "$@"
- ${linuxPackages.perf}/bin/perf script \
+ ${perf}/bin/perf record -g --call-graph dwarf -F max "$@"
+ ${perf}/bin/perf script \
| ${flamegraph}/bin/stackcollapse-perf.pl \
| ${flamegraph}/bin/flamegraph.pl
''