Message 63511 - Python tracker (original) (raw)

Attached are 2 Modules/_lsprof.c files, one for Python 2.5.2 and 2.6a1 and the other for Python 3.0a3. Discard the previously posted one.

Both contain the same enhancements to use the high-resolution timer where available.

These versions catch wrap around of the timer and clock and adjust accordingly. In the hpTimerUnit function only and not for profile times.

Lastly, instead of malloc and free functions PyObject_MALLOC and PyObject_FREE are called making profiler memory usage the same as for other objects created.