diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-11 00:36:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-11 00:36:17 +0300 |
| commit | 0124c447f15539c24d1987f5339caa01ca5e9020 (patch) | |
| tree | a736f80f7fed4773b1915907a0c64109d4c64fe6 | |
| parent | 81e34835ee4f00e506a647974f0ab012efddce55 (diff) | |
more on this
| -rw-r--r-- | Makefile | 30 | ||||
| -rw-r--r-- | internal/flags/flags.go | 2 |
2 files changed, 1 insertions, 31 deletions
@@ -44,36 +44,6 @@ mrproper: clean .PHONY: world world: clean generate test all -.PHONY: flames -flames: - perl ~/git/FlameGraph/flamegraph.pl ior-by-path-count-flamegraph.collapsed \ - --title "I/O Syscall Count" --nametype Path --hash --inverted \ - > ior-by-path-count-flamegraph.svg; \ - perl ~/git/FlameGraph/flamegraph.pl ior-by-path-duration-flamegraph.collapsed \ - --title "I/O Syscall Durations" --nametype Path --hash --countname Nanoseconds --inverted \ - > ior-by-path-duration-flamegraph.svg; \ - perl ~/git/FlameGraph/flamegraph.pl ior-by-syscall-count-flamegraph.collapsed \ - --title "I/O Syscall Count" --nametype Path --hash \ - > ior-by-syscall-count-flamegraph.svg; \ - perl ~/git/FlameGraph/flamegraph.pl ior-by-syscall-duration-flamegraph.collapsed \ - --title "I/O Syscall Durations" --nametype Path --hash --countname Nanoseconds \ - > ior-by-syscall-duration-flamegraph.svg; \ - -.PHONY: inferno -inferno: - inferno-flamegraph < ior-by-path-count-flamegraph.collapsed \ - --title "I/O Syscall Count" --nametype Path --hash --inverted \ - > ior-by-path-count-flamegraph.svg; \ - inferno-flamegraph < ior-by-path-duration-flamegraph.collapsed \ - --title "I/O Syscall Durations" --nametype Path --hash --countname Nanoseconds --inverted \ - > ior-by-path-duration-flamegraph.svg; \ - inferno-flamegraph < ior-by-syscall-count-flamegraph.collapsed \ - --title "I/O Syscall Count" --nametype Path --hash \ - > ior-by-syscall-count-flamegraph.svg; \ - inferno-flamegraph < ior-by-syscall-duration-flamegraph.collapsed \ - --title "I/O Syscall Durations" --nametype Path --hash --countname Nanoseconds \ - > ior-by-syscall-duration-flamegraph.svg; \ - .PHONY: prof prof: $(GO) tool pprof -pdf ./ior ior.cpuprofile > cpuprofile.pdf && evince cpuprofile.pdf & diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 36911d8..bcdb7b8 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -91,7 +91,7 @@ func parse() { // https://github.com/brendangregg/FlameGraph flag.StringVar(&singleton.FlamegraphTool, "flamegraphTool", - os.Getenv("HOME")+"/git/FlameGraph/flamegraph.pl", "Path to the flamegraph tool") + os.Getenv("HOME")+"/git/FlameGraph/flamegraph.pl", "Path to the flamegraph tool (e.g. flamegraph.pl or inferno-flamegraph)") flag.Parse() singleton.TracepointsToAttach = extractTracepointFlags(*tracepointsToAttach) |
