MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / snapshot_stats

Method snapshot_stats

tools/python-3.11.9-amd64/Lib/profile.py:401–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

create_statsMethod · 0.95

Calls 3

itemsMethod · 0.45
copyMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected