class RubyProf::FlatPrinter

Generates flat profile reports as text. To use the flat printer:

result = RubyProf.profile do
  [code to profile]
end

printer = RubyProf::FlatPrinter.new(result)
printer.print(STDOUT, {})

Public Instance Methods

sort_method() click to toggle source

Override for this printer to sort by self time by default

   # File lib/ruby-prof/printers/flat_printer.rb
16 def sort_method
17   @options[:sort_method] || :self_time
18 end