From 8e2332bfc68fb040a956226d36f1ef71c944ef82 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 5 Nov 2019 13:42:23 +0100 Subject: added perf flows --- debug.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3