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/ruby.rb, line 114
114:           def initialize(*args)
115:             # FIXME: yeah my CPU is 2.33 GHz
116:             RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
117:             super
118:           end

Public Instance Methods

measure() click to toggle source
    # File lib/active_support/testing/performance/jruby.rb, line 84
84:           def measure
85:             ManagementFactory.thread_mx_bean.get_current_thread_cpu_time / 1000 / 1000 / 1000.0 # seconds
86:           end
measure() click to toggle source
     # File lib/active_support/testing/performance/ruby.rb, line 120
120:           def measure
121:             RubyProf.measure_cpu_time
122:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.