aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance/ruby.rb
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-26 03:10:00 +0000
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-26 15:51:44 +0000
commit3872cc4a739db7e0fb5b4a910be371c048667ca7 (patch)
treeae48ee846e67207face3e4be1bdfc1d74f8f01d5 /activesupport/lib/active_support/testing/performance/ruby.rb
parent278344b3fab67fcc471f475992a86c3748a83e23 (diff)
downloadrails-3872cc4a739db7e0fb5b4a910be371c048667ca7.tar.gz
rails-3872cc4a739db7e0fb5b4a910be371c048667ca7.tar.bz2
rails-3872cc4a739db7e0fb5b4a910be371c048667ca7.zip
added support for profiling under rubinius
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/ruby.rb')
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb
index 892baceeb2..13dfebbece 100644
--- a/activesupport/lib/active_support/testing/performance/ruby.rb
+++ b/activesupport/lib/active_support/testing/performance/ruby.rb
@@ -8,6 +8,12 @@ end
module ActiveSupport
module Testing
module Performance
+ if !ARGV.include?('--benchmark')
+ DEFAULTS.merge!(
+ { :metrics => [:process_time, :memory, :objects],
+ :formats => [:flat, :graph_html, :call_tree] })
+ end
+
protected
def run_gc
GC.start