From 3872cc4a739db7e0fb5b4a910be371c048667ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Sat, 26 Mar 2011 03:10:00 +0000 Subject: added support for profiling under rubinius --- activesupport/lib/active_support/testing/performance/ruby.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activesupport/lib/active_support/testing/performance/ruby.rb') 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 -- cgit v1.2.3