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