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

Defined in:
lib/active_support/testing/performance.rb

Defined Under Namespace

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

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



221
222
223
224
225
# File 'lib/active_support/testing/performance.rb', line 221

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