Class: JRubyProf::SimpleTreePrinter

Inherits:
AbstractPrinter show all
Defined in:
lib/jruby-prof/simple_tree_printer.rb

Instance Attribute Summary

Attributes inherited from AbstractPrinter

#thread_set

Instance Method Summary collapse

Methods inherited from AbstractPrinter

#initialize, #print_to_file

Constructor Details

This class inherits a constructor from JRubyProf::AbstractPrinter

Instance Method Details



4
5
6
7
8
9
10
11
# File 'lib/jruby-prof/simple_tree_printer.rb', line 4

def print_on(output)
  thread_set.invocations.each_with_index do |invocation, i|
    output.puts 
    output.puts "*** Thread #{i + 1} / #{thread_set.length}"
    output.puts 
    dump_from_root(output, invocation)
  end
end