Skip to content

Commit 4faa9b5

Browse files
committed
RubyProf.cpu_frequency= is no longer supported. Closes #21.
1 parent 7ffa59e commit 4faa9b5

File tree

1 file changed

+0
-6
lines changed
  • lib/rails/perftest/active_support/testing/performance

1 file changed

+0
-6
lines changed

lib/rails/perftest/active_support/testing/performance/ruby.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ def measure
119119
class CpuTime < Time
120120
Mode = RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME)
121121

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-
128122
def measure
129123
RubyProf.measure_cpu_time
130124
end

0 commit comments

Comments
 (0)