diff options
author | johannst <johannes.stoelp@gmail.com> | 2019-11-05 13:42:23 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2019-11-05 13:42:23 +0100 |
commit | 8e2332bfc68fb040a956226d36f1ef71c944ef82 (patch) | |
tree | cf48f0e7f4efe7180518c2d9be55a56fc480db96 /debug.txt | |
parent | 128f0d09f07db89ead779a72ec37215e76b8d209 (diff) | |
download | notes-8e2332bfc68fb040a956226d36f1ef71c944ef82.tar.gz notes-8e2332bfc68fb040a956226d36f1ef71c944ef82.zip |
added perf flows
Diffstat (limited to 'debug.txt')
-rw-r--r-- | debug.txt | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |