Skip to content

Instantly share code, notes, and snippets.

@akochepasov
Last active May 22, 2024 05:15
Show Gist options
  • Save akochepasov/1d57a8ae9dca9e7daae0af58bd5508df to your computer and use it in GitHub Desktop.
Save akochepasov/1d57a8ae9dca9e7daae0af58bd5508df to your computer and use it in GitHub Desktop.
Run perf, make flamegraph
# https://www.brendangregg.com/perf.html
/usr/local/bin/perf record -g -e cpu-clock -F 99 <bin_file>
/usr/local/bin/perf script | stackcollapse-perf.pl | flamegraph.pl > mm_flame.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment