summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-12 23:18:24 +0200
committerPaul Buetow <paul@buetow.org>2025-03-12 23:18:24 +0200
commit507073a912c23bd94a425b2b05779c65bee676e2 (patch)
tree7f0102c8839abf46531783a71d2c8a6f8778673b
parent7c89967f1d41b45f44cc08c879779bdf7d2b73be (diff)
improve flame cmds
-rw-r--r--Makefile8
-rw-r--r--README.md2
-rw-r--r--internal/flamegraph/flamegraph.go2
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