171 def dump(self): |
171 def dump(self): |
172 """ |
172 """ |
173 Public method used to format and print the collected statistics. |
173 Public method used to format and print the collected statistics. |
174 """ |
174 """ |
175 label_len = 79 - len(spacer) - 6 * 6 |
175 label_len = 79 - len(spacer) - 6 * 6 |
176 print(spacer + "FUNCTION / CLASS".ljust(label_len) + \ |
176 print(spacer + "FUNCTION / CLASS".ljust(label_len) + |
177 " START END LINES NLOC COMM EMPTY") |
177 " START END LINES NLOC COMM EMPTY") |
178 for id in self.identifiers + ['TOTAL ']: |
178 for id in self.identifiers + ['TOTAL ']: |
179 label = id |
179 label = id |
180 counters = self.counters.get(id, {}) |
180 counters = self.counters.get(id, {}) |
181 msg = spacer + label.ljust(label_len) |
181 msg = spacer + label.ljust(label_len) |
182 |
182 |