Last active
May 17, 2019 19:29
-
-
Save doyle/0376e06cac67add0744b003a52a75fa7 to your computer and use it in GitHub Desktop.
ruby-prof example
This file contains 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
require 'ruby-prof' | |
RubyProf.start | |
# code... | |
result = RubyProf.stop | |
printer = RubyProf::CallStackPrinter.new(result) | |
printer.print(File.open('call_stack.html', 'w')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment