DebugClients/Python3/PyProfile.py

changeset 3021
801289962f4e
parent 2987
c99695c0f13a
child 3032
927a2f8b3669
equal deleted inserted replaced
3020:542e97d4ecb3 3021:801289962f4e
151 assert (self.cur is None or \ 151 assert (self.cur is None or \
152 frame.f_back is self.cur[-2]), ("Bad call", 152 frame.f_back is self.cur[-2]), ("Bad call",
153 self.cur[-3]) 153 self.cur[-3])
154 fcode = frame.f_code 154 fcode = frame.f_code
155 fn = (self.fix_frame_filename(frame), 155 fn = (self.fix_frame_filename(frame),
156 fcode.co_firstlineno, fcode.co_name) 156 fcode.co_firstlineno, fcode.co_name)
157 self.cur = (t, 0, 0, fn, frame, self.cur) 157 self.cur = (t, 0, 0, fn, frame, self.cur)
158 timings = self.timings 158 timings = self.timings
159 if fn in timings: 159 if fn in timings:
160 cc, ns, tt, ct, callers = timings[fn] 160 cc, ns, tt, ct, callers = timings[fn]
161 timings[fn] = cc, ns + 1, tt, ct, callers 161 timings[fn] = cc, ns + 1, tt, ct, callers

eric ide

mercurial