We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RubyProf.cpu_frequency=
1 parent 7ffa59e commit 4faa9b5Copy full SHA for 4faa9b5
lib/rails/perftest/active_support/testing/performance/ruby.rb
@@ -119,12 +119,6 @@ def measure
119
class CpuTime < Time
120
Mode = RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME)
121
122
- def initialize(*args)
123
- # FIXME: yeah my CPU is 2.33 GHz
124
- RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
125
- super
126
- end
127
-
128
def measure
129
RubyProf.measure_cpu_time
130
end
0 commit comments