Skip to content

Instantly share code, notes, and snippets.

@bfeigin
Created April 8, 2010 18:59
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 bfeigin/360407 to your computer and use it in GitHub Desktop.
Save bfeigin/360407 to your computer and use it in GitHub Desktop.
require 'ruby-prof'
RubyProf.measure_mode = RubyProf::WALL_TIME
RubyProf.start
l2.installments.first.payoff
results = RubyProf.stop
File.open "/tmp/test_results/profile-graph", 'w' do |file|
RubyProf::CallTreePrinter.new(results).print(file)
end
exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment