Skip to content

Commit

Permalink
Line up table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucraft committed Mar 9, 2010
1 parent 54bf37a commit 08887ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jruby-prof/graph_text_printer.rb
@@ -1,7 +1,7 @@

module JRubyProf
class GraphTextPrinter < AbstractPrinter
TABLE_HEADER = " %total %self total self children calls Name"
TABLE_HEADER = " %total %self total self children calls Name"

def print_on(output)
methods = invocation_set.get_methods.values.sort_by {|m| m.duration }.reverse
Expand Down Expand Up @@ -34,7 +34,7 @@ def print_method(output, method, total_duration, print_percents)
else
output.print " "
end
output.puts "#{total.to_s.rjust(11)} #{self_.to_s.rjust(8)} #{children.to_s.rjust(8)} #{calls.to_s.rjust(7)} #{name}"
output.puts "#{total.to_s.rjust(11)} #{self_.to_s.rjust(9)} #{children.to_s.rjust(11)} #{calls.to_s.rjust(8)} #{name}"
end
end
end

0 comments on commit 08887ba

Please sign in to comment.