diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-12 23:04:57 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-12 23:04:57 +0200 |
| commit | aca0d428dd0c87d21c807bf30480f1be1a2afe50 (patch) | |
| tree | 6b95b20c3bae15bebbbb884c9d86b384a1400982 | |
| parent | 0cbf594b5646ec7b020894d918c522be825aacc4 (diff) | |
add flame target
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | internal/flamegraph/flamegraph.go | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -32,3 +32,8 @@ clean: .PHONY: world 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 diff --git a/internal/flamegraph/flamegraph.go b/internal/flamegraph/flamegraph.go index f73bf49..3a41a89 100644 --- a/internal/flamegraph/flamegraph.go +++ b/internal/flamegraph/flamegraph.go @@ -69,10 +69,10 @@ func (f Flamegraph) Add(ev *event.Pair) { } func (f Flamegraph) dump() { - f.dumpBy("ior-by-count-collapsed.flamegraph", func(cnt counter) uint64 { + f.dumpBy("ior-by-count-flamegraph.collapsed", func(cnt counter) uint64 { return cnt.count }) - f.dumpBy("ior-by-duration-collapsed.flamegraph", func(cnt counter) uint64 { + f.dumpBy("ior-by-duration-flamegraph.collapsed", func(cnt counter) uint64 { return cnt.duration }) } |
