summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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