diff options
author | Griffin Smith <grfn@gws.fyi> | 2020-07-15T13·54-0400 |
---|---|---|
committer | glittershark <grfn@gws.fyi> | 2020-07-15T20·21+0000 |
commit | 04ae2933607eaed32c9d99eb3949953a88e63460 (patch) | |
tree | ce58d6e6feb8dae4f6e0733588f429f298b07de3 /bin | |
parent | 3fcebfdaa1bedea6d40fe90cdf4885c2b5d36da2 (diff) |
feat(tools): Add script to flamegraph a command r/1304
Add tools.perf-flamegraph, which collects the base case execution of perf piped through stackcollapse-perf and flamegraph to flamegraph the execution of an external command via perf. Change-Id: I671fe254dc374b6cd7deca2d3bdea266164de025 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1176 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/__dispatch.sh | 3 | ||||
l--------- | bin/perf-flamegraph | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bin/__dispatch.sh b/bin/__dispatch.sh index c0f662a81f7d..b265e2fd197a 100755 --- a/bin/__dispatch.sh +++ b/bin/__dispatch.sh @@ -40,6 +40,9 @@ case "${TARGET_TOOL}" in ninja) attr="third_party.ninja" ;; + perf-flamegraph) + attr="tools.perf-flamegraph" + ;; rebuild-system) attr="ops.nixos.rebuild-system" ;; diff --git a/bin/perf-flamegraph b/bin/perf-flamegraph new file mode 120000 index 000000000000..8390ec9c9652 --- /dev/null +++ b/bin/perf-flamegraph @@ -0,0 +1 @@ +__dispatch.sh \ No newline at end of file |