class RubyProf::FlatPrinterWithLineNumbers

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

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

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

Public Instance Methods

print_methods(thread) click to toggle source