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

Defined in:
lib/active_support/testing/performance.rb,
lib/active_support/testing/performance/ruby.rb,
lib/active_support/testing/performance/jruby.rb,
lib/active_support/testing/performance/rubinius.rb,
lib/active_support/testing/performance/ruby/mri.rb,
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 'lib/active_support/testing/performance.rb', line 242

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