Skip to content

Instantly share code, notes, and snippets.

@nmeylan
Created June 8, 2015 14:20
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 nmeylan/08df353440d1daa1453f to your computer and use it in GitHub Desktop.
Save nmeylan/08df353440d1daa1453f to your computer and use it in GitHub Desktop.
ruby-prof-kcachegrind
require "ruby-prof"
result = RubyProf.profile do
# code here
end
printer = RubyProf::CallTreePrinter.new(result)
printer.print(File.open("output", "w+"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment