[Patches] [ python-Patches-920509 ] Patch to enable profiling of C functions called from python

SourceForge.net noreply at sourceforge.net
Sun Mar 21 10:28:20 EST 2004


Patches item #920509, was opened at 2004-03-21 10:25
Message generated for change (Comment added) made by mondragon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=920509&group_id=5470

Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Nick Bastin (mondragon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch to enable profiling of C functions called from python

Initial Comment:
This patch enables the profiling of C extension functions (and 
builtins) called via the CALL_FUNCTION opcode.  This also includes 
a modification to lib/profile.py to handle the new call type.  On my 
Powerbook 12" 867Mhz it incurs a 0.5% performance hit in the 
interpreter when profiling is not enabled.

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

>Comment By: Nick Bastin (mondragon)
Date: 2004-03-21 10:28

Message:
Logged In: YES 
user_id=430343

Note: this patch is fully backwards with profiler use - the data file is not 
changed in any way.  Also, any 3rd party profilers which would handle 
unknown event types will still continue to work (the standard python 
profiler isn't one of those, so the patch includes a fix for that as well).

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

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



More information about the Patches mailing list