Methods
M
N
Constants
Mode = RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME)
 
Class Public methods
new(*args)
# File activesupport/lib/active_support/testing/performance/ruby.rb, line 114
def initialize(*args)
  # FIXME: yeah my CPU is 2.33 GHz
  RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
  super
end
Instance Public methods
measure()
# File activesupport/lib/active_support/testing/performance/ruby.rb, line 120
def measure
  RubyProf.measure_cpu_time
end