(self, func)
| 502 | print('filename:lineno(function)', file=self.stream) |
| 503 | |
| 504 | def print_line(self, func): # hack: should print percentages |
| 505 | cc, nc, tt, ct, callers = self.stats[func] |
| 506 | c = str(nc) |
| 507 | if nc != cc: |
| 508 | c = c + '/' + str(cc) |
| 509 | print(c.rjust(9), end=' ', file=self.stream) |
| 510 | print(f8(tt), end=' ', file=self.stream) |
| 511 | if nc == 0: |
| 512 | print(' '*8, end=' ', file=self.stream) |
| 513 | else: |
| 514 | print(f8(tt/nc), end=' ', file=self.stream) |
| 515 | print(f8(ct), end=' ', file=self.stream) |
| 516 | if cc == 0: |
| 517 | print(' '*8, end=' ', file=self.stream) |
| 518 | else: |
| 519 | print(f8(ct/cc), end=' ', file=self.stream) |
| 520 | print(func_std_string(func), file=self.stream) |
| 521 | |
| 522 | class TupleComp: |
| 523 | """This class provides a generic function for comparing any two tuples. |
no test coverage detected