Skip to content

Commit

Permalink
RubyProf.cpu_frequency= is no longer supported. Closes #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Sep 7, 2015
1 parent 7ffa59e commit 4faa9b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/rails/perftest/active_support/testing/performance/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,6 @@ def measure
class CpuTime < Time
Mode = RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME)

def initialize(*args)
# FIXME: yeah my CPU is 2.33 GHz
RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
super
end

def measure
RubyProf.measure_cpu_time
end
Expand Down

0 comments on commit 4faa9b5

Please sign in to comment.