mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Minor code cleanups based on comments from Neal Norwitz.
This commit is contained in:
parent
89e000edb7
commit
d10ed8b179
1 changed files with 2 additions and 3 deletions
|
@ -353,8 +353,7 @@ class Profile:
|
||||||
else:
|
else:
|
||||||
pframe = None
|
pframe = None
|
||||||
frame = self.fake_frame(code, pframe)
|
frame = self.fake_frame(code, pframe)
|
||||||
a = self.dispatch['call'](self, frame, 0)
|
self.dispatch['call'](self, frame, 0)
|
||||||
return
|
|
||||||
|
|
||||||
# collect stats from pending stack, including getting final
|
# collect stats from pending stack, including getting final
|
||||||
# timings for self.cmd frame.
|
# timings for self.cmd frame.
|
||||||
|
@ -365,7 +364,7 @@ class Profile:
|
||||||
while self.cur[-1]:
|
while self.cur[-1]:
|
||||||
# We *can* cause assertion errors here if
|
# We *can* cause assertion errors here if
|
||||||
# dispatch_trace_return checks for a frame match!
|
# dispatch_trace_return checks for a frame match!
|
||||||
a = self.dispatch['return'](self, self.cur[-2], t)
|
self.dispatch['return'](self, self.cur[-2], t)
|
||||||
t = 0
|
t = 0
|
||||||
self.t = get_time() - t
|
self.t = get_time() - t
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue