eric6/DebugClients/Python/PyProfile.py

changeset 8217
385f60c94548
parent 7923
91e843545d9a
child 8240
93b8a353c4bf
equal deleted inserted replaced
8216:6a042a54e0f7 8217:385f60c94548
141 @return flag indicating a successful handling (boolean) 141 @return flag indicating a successful handling (boolean)
142 """ 142 """
143 if self.cur and frame.f_back is not self.cur[-2]: 143 if self.cur and frame.f_back is not self.cur[-2]:
144 rpt, rit, ret, rfn, rframe, rcur = self.cur 144 rpt, rit, ret, rfn, rframe, rcur = self.cur
145 if not isinstance(rframe, profile.Profile.fake_frame): 145 if not isinstance(rframe, profile.Profile.fake_frame):
146 assert rframe.f_back is frame.f_back, ("Bad call", rfn, 146 assert rframe.f_back is frame.f_back, ( # secok
147 # secok 147 "Bad call", rfn, rframe, rframe.f_back,
148 rframe, rframe.f_back, 148 frame, frame.f_back)
149 frame, frame.f_back)
150 self.trace_dispatch_return(rframe, 0) 149 self.trace_dispatch_return(rframe, 0)
151 assert (self.cur is None or # secok 150 assert (self.cur is None or # secok
152 frame.f_back is self.cur[-2]), ("Bad call", 151 frame.f_back is self.cur[-2]), ("Bad call",
153 self.cur[-3]) 152 self.cur[-3])
154 fcode = frame.f_code 153 fcode = frame.f_code
155 fn = (self.fix_frame_filename(frame), 154 fn = (self.fix_frame_filename(frame),
156 fcode.co_firstlineno, fcode.co_name) 155 fcode.co_firstlineno, fcode.co_name)

eric ide

mercurial