Class RubyProf::FlatPrinter
In: lib/ruby-prof/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

print  

Public Instance methods

Print a flat profile report to the provided output.

output - Any IO oject, including STDOUT or a file. The default value is STDOUT.

options - Hash of print options. See setup_options

          for more information.

[Validate]