(self)
| 409 | self.snapshot_stats() |
| 410 | |
| 411 | def snapshot_stats(self): |
| 412 | self.stats = {} |
| 413 | for func, (cc, ns, tt, ct, callers) in self.timings.items(): |
| 414 | callers = callers.copy() |
| 415 | nc = 0 |
| 416 | for callcnt in callers.values(): |
| 417 | nc += callcnt |
| 418 | self.stats[func] = cc, nc, tt, ct, callers |
| 419 | |
| 420 | |
| 421 | # The following two methods can be called by clients to use |
no test coverage detected