[Patches] [ python-Patches-458459 ] fix profiling of generators

noreply@sourceforge.net noreply@sourceforge.net
Tue, 04 Sep 2001 10:22:57 -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: None
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Fred L. Drake, Jr. (fdrake)
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.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=458459&group_id=5470