Class: RubyProf::CallTreeTextPrinter
Defined Under Namespace
Classes: IndentedIo
Instance Method Summary
collapse
#initialize
Instance Method Details
13
14
15
|
# File 'lib/ruby-prof/call_tree/text_printer.rb', line 13
def format_method(method)
"#{method.klass}::#{method.method}, #{method.time}, #{method.call_count}\n"
end
|
#print(io) ⇒ Object
4
5
6
7
|
# File 'lib/ruby-prof/call_tree/text_printer.rb', line 4
def print(io)
io << "<main>\n"
super(io)
end
|
#print_methods(io, methods, parent_time = nil) ⇒ Object
9
10
11
|
# File 'lib/ruby-prof/call_tree/text_printer.rb', line 9
def print_methods(io, methods, parent_time=nil)
super(IndentedIo.new(io, 2), methods, parent_time)
end
|