Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Created April 14, 2012 06:17
Show Gist options
  • Save soulcutter/2382439 to your computer and use it in GitHub Desktop.
Save soulcutter/2382439 to your computer and use it in GitHub Desktop.
Ruby profiling rake task
require 'ruby-prof'
require 'ruby-prof/task'
RubyProf::ProfileTask.new(:integration) do |t|
t.test_files = FileList['test/integration/**/patients_test.rb']
t.output_dir = File.join(Rails.root, 'tmp')
t.printer = :graph_html
t.min_percent = 10
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment