Methods

Class Index [+]

Quicksearch

ActiveSupport::Testing::Performance::Metrics::CpuTime

Constants

Mode

Public Class Methods

new(*args) click to toggle source
     # File lib/active_support/testing/performance.rb, line 326
326:             def initialize(*args)
327:               # FIXME: yeah my CPU is 2.33 GHz
328:               RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
329:               super
330:             end

Public Instance Methods

measure() click to toggle source
     # File lib/active_support/testing/performance.rb, line 332
332:             def measure
333:               RubyProf.measure_cpu_time
334:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.