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

Method trace_dispatch_mac

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

Source from the content-addressed store, hash-verified

223 # 1/60th second)
224
225 def trace_dispatch_mac(self, frame, event, arg):
226 timer = self.timer
227 t = timer()/60.0 - self.t - self.bias
228
229 if event == "c_call":
230 self.c_func_name = arg.__name__
231
232 if self.dispatch[event](self, frame, t):
233 self.t = timer()/60.0
234 else:
235 self.t = timer()/60.0 - t # put back unrecorded delta
236
237 # SLOW generic dispatch routine for timer returning lists of numbers
238

Callers

nothing calls this directly

Calls 1

timerFunction · 0.85

Tested by

no test coverage detected