method

run

rails latest stable - Class: ActiveSupport::Testing::Performance::Profiler

Method deprecated or moved

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

run()
public

No documentation available.

# File activesupport/lib/active_support/testing/performance/ruby.rb, line 31
        def run
          return unless @supported

          RubyProf.measure_mode = @metric.measure_mode
          RubyProf.start
          RubyProf.pause
          full_profile_options[:runs].to_i.times { run_test(@metric, :profile) }
          @data = RubyProf.stop
          @total = @data.threads.sum(0) { |thread| thread.methods.max.total_time }
        end