DebugClients/Python/PyProfile.py

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

eric ide

mercurial