aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-11-05 13:42:23 +0100
committerjohannst <johannes.stoelp@gmail.com>2019-11-05 13:42:23 +0100
commit8e2332bfc68fb040a956226d36f1ef71c944ef82 (patch)
treecf48f0e7f4efe7180518c2d9be55a56fc480db96
parent128f0d09f07db89ead779a72ec37215e76b8d209 (diff)
downloadnotes-8e2332bfc68fb040a956226d36f1ef71c944ef82.tar.gz
notes-8e2332bfc68fb040a956226d36f1ef71c944ef82.zip
added perf flows
-rw-r--r--debug.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug.txt b/debug.txt
index 18f054d..9579f77 100644
--- a/debug.txt
+++ b/debug.txt
@@ -48,10 +48,15 @@ perf report -g graph,0.5,caller
# flamegraph (https://github.com/brendangregg/FlameGraph)
# record events of interest, eg page-faults
-perf stat -e page-faults -I 1000 -p 571
+perf record -e page-faults --call-graph dwarf
perf script | FlameGraph/stackcollapse-perf.pl > out.perf-folded
FlameGraph/flamegraph.pl out.perf-folded > perf-trace.svg
+# record multiple events and generate flamegraphs
+perf record --call-graph dwarf -p $(pgrep -u jstolp -n sim) -F 200 -e cpu-cycles,page-faults
+perf script --per-event-dump
+# fold & generate as above
+
# print supported events
ophelp