# File lib/ruby-prof/test.rb, line 65 def run_profile(measure_mode) RubyProf.measure_mode = measure_mode print ' ' PROFILE_OPTIONS[:count].times do |i| run_test do begin print '.' $stdout.flush GC.disable RubyProf.resume do __send__(@method_name) end ensure GC.enable end end end data = RubyProf.stop bench = data.threads.values.inject(0) do |total, method_infos| top = method_infos.max total += top.total_time total end puts "\n #{measure_mode_name(measure_mode)}: #{format_profile_total(bench, measure_mode)}\n" data end