Class RubyProf::GraphPrinter
In: lib/ruby-prof/printers/graph_printer.rb
Parent: AbstractPrinter

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

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

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

The constructor takes two arguments. See the README

Constants

PERCENTAGE_WIDTH = 8
TIME_WIDTH = 10
CALL_WIDTH = 17

[Validate]