class RubyProf::GraphPrinter

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

CALL_WIDTH
PERCENTAGE_WIDTH
TIME_WIDTH

Private Instance Methods

print_children(method) click to toggle source
print_header(thread) click to toggle source
print_methods(thread) click to toggle source
print_parents(thread, method) click to toggle source
sort_method() click to toggle source
# File lib/ruby-prof/printers/graph_printer.rb, line 23
def sort_method
  @options[:sort_method] || :total_time
end