Skip to content

Instantly share code, notes, and snippets.

@rgerganov
Created December 19, 2024 08:32
Show Gist options
  • Save rgerganov/836c8602606780ba6110a8ab010f6c60 to your computer and use it in GitHub Desktop.
Save rgerganov/836c8602606780ba6110a8ab010f6c60 to your computer and use it in GitHub Desktop.
perf usage
#!/bin/bash
perf record -F 99 -g python foo.py
perf script | ./stackcollapse-perf.pl > out.perf-folded
./flamegraph.pl out.perf-folded > result.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment