[Python-Dev] the new profiler and profiling c calls (original) (raw)
Simon Percivall s.percivall at chello.se
Tue Jul 13 00:15:14 CEST 2004
- Previous message: [Python-Dev] Proposal: C API Macro to decref and set to NULL
- Next message: [Python-Dev] the new profiler and profiling c calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I think there's a slight problem with the profiling of C calls in the new profiler.
When profiling method calls, the C function name is the repr() of the method, which means that a call for instance on str.endswith on different string instances ends up as completely separate calls. This might be intentional, but it's different than the way Python code is profiled, and it's irritating.
Testing if a thousand different lines ends in a certain way means the default output from profile gets another thousand lines. I don't really think that's how it should be.
- Previous message: [Python-Dev] Proposal: C API Macro to decref and set to NULL
- Next message: [Python-Dev] the new profiler and profiling c calls
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]