Created
May 2, 2017 21:05
-
-
Save webgago/dc71490c2b170bf736e9f3077a2614f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
RubyProf.start | |
result = RubyProf.stop | |
printer = RubyProf::GraphHtmlPrinter.new(result) | |
File.open(Rails.root.join('tmp/profile_refactoring.html'), 'w+') { |f| printer.print(f, :min_percent => 2) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment