overridden by each implementation
Methods
Class Public methods
Instance Public methods
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 39 def record return unless @supported if(full_profile_options[:formats].include?(:flat)) create_path_and_open_file(:flat) do |file| @profiler.show(file) end end if(full_profile_options[:formats].include?(:graph)) create_path_and_open_file(:graph) do |file| @profiler.show(file) end end end
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 27 def run return unless @supported @profiler = Rubinius::Profiler::Instrumenter.new @total = time_with_block do @profiler.profile(false) do full_profile_options[:runs].to_i.times { run_test(@metric, :profile) } end end end
Instance Protected methods
# File activesupport/lib/active_support/testing/performance/ruby.rb, line 57 def output_filename(printer_class) suffix = case printer_class.name.demodulize when 'FlatPrinter'; 'flat.txt' when 'FlatPrinterWithLineNumbers'; 'flat_line_numbers.txt' when 'GraphPrinter'; 'graph.txt' when 'GraphHtmlPrinter'; 'graph.html' when 'GraphYamlPrinter'; 'graph.yml' when 'CallTreePrinter'; 'tree.txt' when 'CallStackPrinter'; 'stack.html' when 'DotPrinter'; 'graph.dot' else printer_class.name.sub(%rPrinter$/, '').underscore end "#{super()}_#{suffix}" end