Module: ActiveSupport::Testing::Performance::Metrics

Defined in:
activesupport/lib/active_support/testing/performance.rb,
activesupport/lib/active_support/testing/performance/ruby.rb,
activesupport/lib/active_support/testing/performance/jruby.rb,
activesupport/lib/active_support/testing/performance/ruby/mri.rb,
activesupport/lib/active_support/testing/performance/rubinius.rb,
activesupport/lib/active_support/testing/performance/ruby/yarv.rb

Defined Under Namespace

Classes: Amount, Base, CpuTime, DigitalInformationUnit, GcRuns, GcTime, Memory, Objects, ProcessTime, Time, UserTime, WallTime

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object


242
243
244
245
246
# File 'activesupport/lib/active_support/testing/performance.rb', line 242

def self.[](name)
  const_get(name.to_s.camelize)
rescue NameError
  nil
end