Skip to content

Instantly share code, notes, and snippets.

@jmdeldin
Created April 24, 2014 06:15
Show Gist options
  • Save jmdeldin/11243416 to your computer and use it in GitHub Desktop.
Save jmdeldin/11243416 to your computer and use it in GitHub Desktop.
Profiling
% gem install perftools.rb
% CPUPROFILE_REALTIME=1 CPUPROFILE_METHODS=1 CPUPROFILE=/tmp/profile RUBYOPT="-r`gem which perftools | tail -1`" ruby /tmp/z.rb && pprof.rb --pdf /tmp/profile > /tmp/profile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment