Created
September 21, 2022 16:12
-
-
Save lucperkins/84fad548eb6b664dca4500f2d5aa44ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perf script | stackcollapse-perf.pl | # taken from the flamegraph page linked above | |
grep ^qemu | # We're only interested in the qemu process | |
awk '/unknown/ { gsub("(\\[unknown];){1,}", "[unknown...];", $0) } { print }' | # Make the graph a lot less tall by collapsing multiple consecutive unknown stack frames together | |
flamegraph.pl > flamegraph.svg # and generate a flamegraph |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment