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