(self, func)
| 507 | print('filename:lineno(function)', file=self.stream) |
| 508 | |
| 509 | def print_line(self, func): # hack: should print percentages |
| 510 | cc, nc, tt, ct, callers = self.stats[func] |
| 511 | c = str(nc) |
| 512 | if nc != cc: |
| 513 | c = c + '/' + str(cc) |
| 514 | print(c.rjust(9), end=' ', file=self.stream) |
| 515 | print(f8(tt), end=' ', file=self.stream) |
| 516 | if nc == 0: |
| 517 | print(' '*8, end=' ', file=self.stream) |
| 518 | else: |
| 519 | print(f8(tt/nc), end=' ', file=self.stream) |
| 520 | print(f8(ct), end=' ', file=self.stream) |
| 521 | if cc == 0: |
| 522 | print(' '*8, end=' ', file=self.stream) |
| 523 | else: |
| 524 | print(f8(ct/cc), end=' ', file=self.stream) |
| 525 | print(func_std_string(func), file=self.stream) |
| 526 | |
| 527 | |
| 528 | class SampledStats(Stats): |
no test coverage detected