Importing from perf (linux)

Jamie Wong edited this page Aug 21, 2018 · 1 revision

perf is a tool for profiling on linux.

You can import profiles into speedscope which were recorded using perf record and formatted using perf script.

perf record -a -F 999 -g -p PID > perf.data
perf script -i perf.data > profile.linux-perf.txt

Then drop the resulting perf.txt into speedscope, or if you have speedscope installed locally, you can run:

perf record -a -F 999 -g -p PID > perf.data
perf script -i perf.data | speedscope -
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.