Class: RubyProf::GraphPrinter

Inherits:
AbstractPrinter show all
Defined in:
lib/ruby-prof/printers/graph_printer.rb

Overview

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

Constant Summary collapse

PERCENTAGE_WIDTH =
8
TIME_WIDTH =
11
CALL_WIDTH =
17

Method Summary

Methods inherited from AbstractPrinter

#initialize, #method_name, #min_percent, #print, #print_file, #print_thread, #print_threads, #setup_options, #sort_method

Constructor Details

This class inherits a constructor from RubyProf::AbstractPrinter