Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created June 5, 2010 13:04
Show Gist options
  • Save hsbt/426608 to your computer and use it in GitHub Desktop.
Save hsbt/426608 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'ruby-prof'
RubyProf.start
result = RubyProf.stop
printer = RubyProf::FlatPrinter.new(result)
open('rubyprof.txt', 'w+') do |f|
printer.print(f, 0)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment