From 93a583eb184f0e3ba21adeab789c7d441ab98a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Mon, 28 Mar 2011 00:32:21 +0100 Subject: :min_percent only makes sense in a RubyProf context --- activesupport/lib/active_support/testing/performance.rb | 1 - activesupport/lib/active_support/testing/performance/ruby.rb | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index 0472f44a20..ec11c60534 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -17,7 +17,6 @@ module ActiveSupport else { :benchmark => false, :runs => 1, - :min_percent => 0.01, :output => 'tmp/performance' } end diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb index 13dfebbece..dc77f22ba2 100644 --- a/activesupport/lib/active_support/testing/performance/ruby.rb +++ b/activesupport/lib/active_support/testing/performance/ruby.rb @@ -10,7 +10,8 @@ module ActiveSupport module Performance if !ARGV.include?('--benchmark') DEFAULTS.merge!( - { :metrics => [:process_time, :memory, :objects], + { :min_percent => 0.01, + :metrics => [:process_time, :memory, :objects], :formats => [:flat, :graph_html, :call_tree] }) end -- cgit v1.2.3