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

Method trace_dispatch_i

Lib/profile.py:210–220  ·  view source on GitHub ↗
(self, frame, event, arg)

Source from the content-addressed store, hash-verified

208 # an integer but float works too -- and time.process_time() relies on that).
209
210 def trace_dispatch_i(self, frame, event, arg):
211 timer = self.timer
212 t = timer() - self.t - self.bias
213
214 if event == "c_call":
215 self.c_func_name = arg.__name__
216
217 if self.dispatch[event](self, frame, t):
218 self.t = timer()
219 else:
220 self.t = timer() - t # put back unrecorded delta
221
222 # Dispatch routine for macintosh (timer returns time in ticks of
223 # 1/60th second)

Callers

nothing calls this directly

Calls 1

timerFunction · 0.85

Tested by

no test coverage detected