Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Created January 28, 2013 16:17
Show Gist options
  • Save bugcy013/4656876 to your computer and use it in GitHub Desktop.
Save bugcy013/4656876 to your computer and use it in GitHub Desktop.
oprofile
sudo opcontrol --start-daemon
sudo opcontrol --shutdown
sudo opcontrol --status
sudo opcontrol --vmlinux=/usr/lib/debug/lib/modules/2.6.18-164.el5debug/vmlinux
sudo opcontrol --start --callgraph=5
sudo opcontrol --stop
sudo opcontrol --dump
sudo opcontrol --reset
# http://code.google.com/p/jrfonseca/wiki/Gprof2Dot
sudo opreport --callgraph | gprof2dot.py -f oprofile | dot -Tpng -o output.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment