MCPcopy Index your code
hub / github.com/python/cpython / snapshot_stats

Method snapshot_stats

Lib/profile.py:411–418  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

create_statsMethod · 0.95

Calls 3

itemsMethod · 0.45
copyMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected