From 507073a912c23bd94a425b2b05779c65bee676e2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 12 Mar 2025 23:18:24 +0200 Subject: improve flame cmds --- Makefile | 8 ++++++-- README.md | 2 ++ internal/flamegraph/flamegraph.go | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 32452b0..26c74a7 100644 --- a/Makefile +++ b/Makefile @@ -35,5 +35,9 @@ world: clean generate all .PHONY: flames flames: - perl ~/git/FlameGraph/flamegraph.pl ior-by-count-flamegraph.collapsed --hash > ior-by-count-flamegraph.svg - perl ~/git/FlameGraph/flamegraph.pl ior-by-duration-flamegraph.collapsed --hash > ior-by-duration-flamegraph.svg + perl ~/git/FlameGraph/flamegraph.pl ior-by-count-flamegraph.collapsed \ + --title "I/O Syscall Count" --nametype Path --hash \ + > ior-by-count-flamegraph.svg + perl ~/git/FlameGraph/flamegraph.pl ior-by-duration-flamegraph.collapsed \ + --title "I/O Syscall Durations" --nametype Path --hash --countname Nanoseconds \ + > ior-by-duration-flamegraph.svg diff --git a/README.md b/README.md index 0ca014d..3e26422 100644 --- a/README.md +++ b/README.md @@ -39,3 +39,5 @@ rm -Rf ~/rpmbuild make sudo cp -v ./libelf/libelf.a /usr/lib64/ ``` + + diff --git a/internal/flamegraph/flamegraph.go b/internal/flamegraph/flamegraph.go index 3a41a89..1bfd82e 100644 --- a/internal/flamegraph/flamegraph.go +++ b/internal/flamegraph/flamegraph.go @@ -15,7 +15,7 @@ type counter struct { duration uint64 } -// Rename to Flamegraph +// TODO: Profile for CPU usage type Flamegraph struct { // Collapsed flamegraph stats collector collapsed map[string]map[types.TraceId]counter -- cgit v1.2.3