# File lib/ruby-prof/call_tree_printer.rb, line 69 def print_methods(thread_id, methods) methods.reverse_each do |method| # Print out the file and method name @output << "fl=#{file(method)}\n" @output << "fn=#{method_name(method)}\n" # Now print out the function line number and its self time @output << "#{method.line} #{convert(method.self_time)}\n" # Now print out all the children methods method.children.each do |callee| @output << "cfl=#{file(callee.target)}\n" @output << "cfn=#{method_name(callee.target)}\n" @output << "calls=#{callee.called} #{callee.line}\n" # Print out total times here! @output << "#{callee.line} #{convert(callee.total_time)}\n" end @output << "\n" end end