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

Defined in:
lib/rails/perftest/active_support/testing/performance.rb,
lib/rails/perftest/active_support/testing/performance/ruby.rb,
lib/rails/perftest/active_support/testing/performance/jruby.rb,
lib/rails/perftest/active_support/testing/performance/rubinius.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



223
224
225
226
227
# File 'lib/rails/perftest/active_support/testing/performance.rb', line 223

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