Methods
Constants
| Mode | = | RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME) |
Public Class methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 319
319: def initialize(*args)
320: # FIXME: yeah my CPU is 2.33 GHz
321: RubyProf.cpu_frequency = 2.33e9
322: super
323: end
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/testing/performance.rb, line 325
325: def measure
326: RubyProf.measure_cpu_time
327: end