Profiler question

Neil Schemenauer nas at python.ca
Tue Jul 10 11:37:25 EDT 2001


Alexandre Fayolle wrote:
> I'm using the profile module to try to see where I could get some speedups
> in an application, I'm getting troubles interpretting the results, especially
> the cumulative times. Is there a known problem with profile and multithreaded
> applications? 

If you're on a reasonably fast machine and the timer resolution is poor
(e.g. Linux x68 is 100 Hz by default) then the results can be very
strange.  Changing HZ to 1024 in "include/asm/param.h" and recompiling
the Linux kernel greatly improved my profile results.

  Neil




More information about the Python-list mailing list