Class RubyProf::GraphHtmlPrinter
In: lib/ruby-prof/printers/graph_html_printer.rb
Parent: AbstractPrinter

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

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

  printer = RubyProf::GraphHtmlPrinter.new(result)
  printer.print(STDOUT, :min_percent=>0)

The Graph printer takes the following options in its print methods:

  :filename    - specify a file to use that contains the ERB
                 template to use, instead of the built-in self.template

  :template    - specify an ERB template to use, instead of the
                 built-in self.template

Methods

Included Modules

ERB::Util

Constants

PERCENTAGE_WIDTH = 8
TIME_WIDTH = 10
CALL_WIDTH = 20

Public Instance methods

Creates a link to a method. Note that we do not create links to methods which are under the min_perecent specified by the user, since they will not be printed out.

[Validate]