Skip to content

Instantly share code, notes, and snippets.

@anildigital
Forked from lifo/gist:23541
Created November 24, 2008 04:56
Show Gist options
  • Save anildigital/28382 to your computer and use it in GitHub Desktop.
Save anildigital/28382 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'ruby-prof'
RubyProf.measure_mode = RubyProf::PROCESS_TIME
RubyProf.start
require 'config/environment'
results = RubyProf.stop
File.open "loading-graph.html", 'w' do |file|
RubyProf::GraphHtmlPrinter.new(results).print(file)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment