[Patches] [ python-Patches-458459 ] fix profiling of generators
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 04 Sep 2001 11:34:20 -0700
Patches item #458459, was opened at 2001-09-04 10:22
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=458459&group_id=5470
Category: core (C code)
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
>Assigned to: Neil Schemenauer (nascheme)
Summary: fix profiling of generators
Initial Comment:
The profile module doesn't understand functions
that get called once but return multiple times. This
patch moves call_trace(..., PyTrace_CALL, ...)
to the top of eval_frame. That way the profile trace
function gets notified each time a generator resumes.
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-09-04 11:34
Message:
Logged In: YES
user_id=3066
I agree; please check this in.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=458459&group_id=5470