Skip to content

Instantly share code, notes, and snippets.

@jestan
Created August 24, 2015 06:32
Show Gist options
  • Save jestan/8919b91eca5a7a43d3d6 to your computer and use it in GitHub Desktop.
Save jestan/8919b91eca5a7a43d3d6 to your computer and use it in GitHub Desktop.
CPU Profiling with Perf
# run following command as root for 2 mins to collect data, data will be written into "perf.data" file
perf record -F 99 -p <PID>
# run following command to display the recoded data
perf report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment