Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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