Sha256: 8bbb61f93a85cbe34744cfd4ab16d8a0695eac722b55feeacaded1cde4ba4a7c
Contents?: true
Size: 587 Bytes
Versions: 1
Compression:
Stored size: 587 Bytes
Contents
module RubyProf class CallTreeTextPrinter < CallTreeAbstractPrinter def print(io) io << "<main>\n" super(io) end def print_methods(io, methods, parent_time=nil) super(IndentedIo.new(io, 2), methods, parent_time) end def format_method(method) "#{method.klass}::#{method.method}, #{method.time}, #{method.call_count}\n" end class IndentedIo def initialize(io, indent) @io = io @indent = Array.new(indent, ' ').join end def <<(text) @io << "#{@indent}#{text}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-prof-danielhoey-0.8.1 | lib/ruby-prof/call_tree/text_printer.rb |