Lines Matching refs:frame

107     frame that is currently active (self.cur[-2]).  The following are the
112 [-2:] intact (frame and previous tuple). In case an internal error is
115 [ 0] = Time that needs to be charged to the parent frame's function.
117 timing data for the parent frame.
118 [ 1] = Total time spent in this frame's function, excluding time in
121 frame's function (this latter is tallied in cur[1]).
122 [-3] = Name of the function that corresponds to this frame.
123 [-2] = Actual frame that we correspond to (used to sync exception handling).
124 [-1] = Our parent 6-tuple (corresponds to frame.f_back).
183 def trace_dispatch(self, frame, event, arg):
191 if self.dispatch[event](self, frame,t):
201 def trace_dispatch_i(self, frame, event, arg):
208 if self.dispatch[event](self, frame, t):
216 def trace_dispatch_mac(self, frame, event, arg):
223 if self.dispatch[event](self, frame, t):
230 def trace_dispatch_l(self, frame, event, arg):
237 if self.dispatch[event](self, frame, t):
245 # _pt self.cur[0] "parent time" time to be charged to parent frame
249 def trace_dispatch_exception(self, frame, t):
251 if (rframe is not frame) and rcur:
257 def trace_dispatch_call(self, frame, t):
258 if self.cur and frame.f_back is not self.cur[-2]:
261 assert rframe.f_back is frame.f_back, ("Bad call", rfn,
263 frame, frame.f_back)
266 frame.f_back is self.cur[-2]), ("Bad call",
268 fcode = frame.f_code
270 self.cur = (t, 0, 0, fn, frame, self.cur)
279 def trace_dispatch_c_call (self, frame, t):
281 self.cur = (t, 0, 0, fn, frame, self.cur)
290 def trace_dispatch_return(self, frame, t):
291 if frame is not self.cur[-2]:
292 assert frame is self.cur[-2].f_back, ("Bad return", self.cur[-3])
295 # Prefix "r" means part of the Returning or exiting frame.
296 # Prefix "p" means part of the Previous or Parent or older frame.
298 rpt, rit, ret, rfn, frame, rcur = self.cur
370 frame = self.fake_frame(code, pframe)
371 self.dispatch['call'](self, frame, 0)
374 # timings for self.cmd frame.
381 # dispatch_trace_return checks for a frame match!
471 # counts of this in each frame, and then extend the defs of timing