Class RubyProf::FlatPrinter
In: lib/ruby-prof/printers/flat_printer.rb
Parent: AbstractPrinter

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, {})

Methods

Public Instance methods

Override for this printer to sort by self time by default

[Validate]