Skip to content

Instantly share code, notes, and snippets.

@bonkydog
Created June 17, 2014 21:44
Show Gist options
  • Select an option

  • Save bonkydog/c5d2a8bc598992577993 to your computer and use it in GitHub Desktop.

Select an option

Save bonkydog/c5d2a8bc598992577993 to your computer and use it in GitHub Desktop.
profile something with ruby_prof
require 'ruby-prof'
result = RubyProf.profile do
# do something
end
printer = RubyProf::MultiPrinter.new(result)
printer.print(path: ".", profile: "profile")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment