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

#filter_by, #initialize, #max_percent, #method_href, #method_location, #min_percent, needs_dir?, #open_asset, #print, #print_column_headers, #print_footer, #print_thread, #print_threads, #setup_options, #time_format

Constructor Details

This class inherits a constructor from RubyProf::AbstractPrinter