Created
April 24, 2014 06:15
-
-
Save jmdeldin/11243416 to your computer and use it in GitHub Desktop.
Profiling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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