method
run
v3.2.1 -
Show latest stable
- Class:
ActiveSupport::Testing::Performance::Profiler
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.values.sum(0) { |method_infos| method_infos.max.total_time }
end