From d14055a019b7266a3ed38ddb19c018275a13f4d1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 19 May 2022 17:39:13 -0700 Subject: feat(home): add a script to create flamegraph from a process This script (`perf-flamegraph-process') takes a process as an argument, and will run it with `perf' to capture the call graph, and will generate the flamegraph from it. The SVG is saved under `~/workspace/tmp/flamegraph'. --- home/scripts/default.nix | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 home/scripts/default.nix (limited to 'home/scripts/default.nix') diff --git a/home/scripts/default.nix b/home/scripts/default.nix new file mode 100644 index 0000000..bc19e44 --- /dev/null +++ b/home/scripts/default.nix @@ -0,0 +1,5 @@ +{ ... }: + +{ + imports = [ ./perf-flamegraph.nix ]; +} -- cgit v1.2.3