Lines Matching refs:cur
114 self.cur is always a tuple. Each such tuple corresponds to a stack
115 frame that is currently active (self.cur[-2]). The following are the
127 subfunctions (this latter is tallied in cur[2]).
129 frame's function (this latter is tallied in cur[1]).
135 self.timings[]. The index is always the name stored in self.cur[-3].
154 self.cur = None
262 # In the event handlers, the first 3 elements of self.cur are unpacked
265 # _pt self.cur[0] "parent time" time to be charged to parent frame
266 # _it self.cur[1] "internal time" time spent directly in the function
267 # _et self.cur[2] "external time" time spent in subfunctions
270 rpt, rit, ret, rfn, rframe, rcur = self.cur
273 self.cur = rpt, rit+t, ret, rfn, rframe, rcur
278 if self.cur and frame.f_back is not self.cur[-2]:
279 rpt, rit, ret, rfn, rframe, rcur = self.cur
285 assert (self.cur is None or \
286 frame.f_back is self.cur[-2]), ("Bad call",
287 self.cur[-3])
290 self.cur = (t, 0, 0, fn, frame, self.cur)
301 self.cur = (t, 0, 0, fn, frame, self.cur)
311 if frame is not self.cur[-2]:
312 assert frame is self.cur[-2].f_back, ("Bad return", self.cur[-3])
313 self.trace_dispatch_return(self.cur[-2], 0)
318 rpt, rit, ret, rfn, frame, rcur = self.cur
323 self.cur = ppt, pit + rpt, pet + frame_total, pfn, pframe, pcur
365 if self.cur[-1]: return # already set
386 if self.cur:
387 pframe = self.cur[-2]
399 while self.cur[-1]:
402 self.dispatch['return'](self, self.cur[-2], t)