class RubyProf::CallInfoPrinter

def print_methods(thread)

def print_methods(thread)
  visitor = CallTreeVisitor.new(thread.call_tree, max_depth: @max_depth)
  visitor.visit do |call_tree, event|
    if event == :enter
      @output << "  " * call_tree.depth
      @output << call_tree.target.full_name
      @output << " ("
      @output << "tt:#{sprintf("%#{TIME_WIDTH}.2f", call_tree.total_time)}, "
      @output << "st:#{sprintf("%#{TIME_WIDTH}.2f", call_tree.self_time)}, "
      @output << "wt:#{sprintf("%#{TIME_WIDTH}.2f", call_tree.wait_time)}, "
      @output << "ct:#{sprintf("%#{TIME_WIDTH}.2f", call_tree.children_time)}, "
      @output << "call:#{call_tree.called}, "
      @output << ")"
      @output << "\n"
    end
  end
end