Skip to content

Instantly share code, notes, and snippets.

@mallipeddi
Created July 24, 2012 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallipeddi/3173138 to your computer and use it in GitHub Desktop.
Save mallipeddi/3173138 to your computer and use it in GitHub Desktop.
Using 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