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

Defined in:
activesupport/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 'activesupport/lib/active_support/testing/performance.rb', line 221

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