diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 04:19:39 +0100 |
---|---|---|
committer | Gonçalo Silva <goncalossilva@gmail.com> | 2011-03-28 04:19:39 +0100 |
commit | 726b7ede54031eecfcee34eec80040553e9ad19f (patch) | |
tree | 1e4da2700e3fa2b5f459d7ec3e0222a9ba75cb36 /activesupport/lib/active_support/testing/performance/ruby.rb | |
parent | 09bd0eeefc5cb3c2cb26e17b486dd0965afbf4d5 (diff) | |
download | rails-726b7ede54031eecfcee34eec80040553e9ad19f.tar.gz rails-726b7ede54031eecfcee34eec80040553e9ad19f.tar.bz2 rails-726b7ede54031eecfcee34eec80040553e9ad19f.zip |
improved detection and feedback of supported/unsupported metrics
Diffstat (limited to 'activesupport/lib/active_support/testing/performance/ruby.rb')
-rw-r--r-- | activesupport/lib/active_support/testing/performance/ruby.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb index 36dc75ca8f..d08eedc653 100644 --- a/activesupport/lib/active_support/testing/performance/ruby.rb +++ b/activesupport/lib/active_support/testing/performance/ruby.rb @@ -102,8 +102,6 @@ module ActiveSupport end end - class Time < Base; end - class ProcessTime < Time Mode = RubyProf::PROCESS_TIME if RubyProf.const_defined?(:PROCESS_TIME) @@ -134,7 +132,7 @@ module ActiveSupport end end - class Memory < Base + class Memory < DigitalInformationUnit Mode = RubyProf::MEMORY if RubyProf.const_defined?(:MEMORY) # overridden by each implementation |