From 0124c447f15539c24d1987f5339caa01ca5e9020 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 11 Apr 2025 00:36:17 +0300 Subject: more on this --- Makefile | 30 ------------------------------ internal/flags/flags.go | 2 +- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/Makefile b/Makefile index ab99d2e..fbeb335 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.3