equal
deleted
inserted
replaced
62 |
62 |
63 public void printOn(PrintStream tty) { |
63 public void printOn(PrintStream tty) { |
64 List list = getElements(); |
64 List list = getElements(); |
65 ObjectHistogramElement.titleOn(tty); |
65 ObjectHistogramElement.titleOn(tty); |
66 Iterator iterator = list.listIterator(); |
66 Iterator iterator = list.listIterator(); |
|
67 int num=0; |
|
68 int totalCount=0; |
|
69 int totalSize=0; |
67 while (iterator.hasNext()) { |
70 while (iterator.hasNext()) { |
68 ((ObjectHistogramElement) iterator.next()).printOn(tty); |
71 ObjectHistogramElement el = (ObjectHistogramElement) iterator.next(); |
|
72 num++; |
|
73 totalCount+=el.getCount(); |
|
74 totalSize+=el.getSize(); |
|
75 tty.print(num + ":" + "\t\t"); |
|
76 el.printOn(tty); |
69 } |
77 } |
|
78 tty.println("Total : " + "\t" + totalCount + "\t" + totalSize); |
70 } |
79 } |
71 } |
80 } |