(self)
| 399 | self.snapshot_stats() |
| 400 | |
| 401 | def snapshot_stats(self): |
| 402 | self.stats = {} |
| 403 | for func, (cc, ns, tt, ct, callers) in self.timings.items(): |
| 404 | callers = callers.copy() |
| 405 | nc = 0 |
| 406 | for callcnt in callers.values(): |
| 407 | nc += callcnt |
| 408 | self.stats[func] = cc, nc, tt, ct, callers |
| 409 | |
| 410 | |
| 411 | # The following two methods can be called by clients to use |
no test coverage detected