class RubyProf::GraphHtmlPrinter

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:

Public Instance Methods

method_href(thread, method) click to toggle source
# File lib/ruby-prof/printers/graph_html_printer.rb, line 46
def method_href(thread, method)
  h(method.full_name.gsub(/[><#\.\?=:]/,"_") + "_" + thread.fiber_id.to_s)
end
print(output = STDOUT, options = {}) click to toggle source
setup_options(options) click to toggle source
Calls superclass method
# File lib/ruby-prof/printers/graph_html_printer.rb, line 21
def setup_options(options)
  super(options)
  @erb = ERB.new(self.template)
end
template() click to toggle source
# File lib/ruby-prof/printers/graph_html_printer.rb, line 59
def template
  open_asset('graph_printer.html.erb')
end