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