method

new

rails latest stable - Class: ActiveSupport::Testing::Metrics::CpuTime

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.0) is shown here.

new(*args)
public

No documentation available.

# File activesupport/lib/active_support/testing/performance.rb, line 326
            def initialize(*args)
              # FIXME: yeah my CPU is 2.33 GHz
              RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
              super
            end