Skip to content

Instantly share code, notes, and snippets.

@jayjanssen
Created January 30, 2013 17:27
Show Gist options
  • Select an option

  • Save jayjanssen/4674892 to your computer and use it in GitHub Desktop.

Select an option

Save jayjanssen/4674892 to your computer and use it in GitHub Desktop.
Running perf
install perf
install galera-debuginfo (if PXC)
install PS/PXC debuginfo
# collect 1 pid
perf record -g -p 16004
# collect all procs
perf record -a -g
# report of 'record' collection
perf report -g --stdio -v | curl -s -F 'sprunge=<-' http://sprunge.us
# same, but limit size
perf report -g --stdio -v | head -c 256k | curl -s -F 'sprunge=<-' http://sprunge.us
perf top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment