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

Method simulate_cmd_complete

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

Source from the content-addressed store, hash-verified

383 # timings for self.cmd frame.
384
385 def simulate_cmd_complete(self):
386 get_time = self.get_time
387 t = get_time() - self.t
388 while self.cur[-1]:
389 # We *can* cause assertion errors here if
390 # dispatch_trace_return checks for a frame match!
391 self.dispatch['return'](self, self.cur[-2], t)
392 t = 0
393 self.t = get_time() - t
394
395
396 def print_stats(self, sort=-1):

Callers 1

create_statsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected