[Python-Dev] OS timer and profiling Python code

Neil Schemenauer nas@python.ca
Tue, 19 Jun 2001 15:12:49 -0700


On x86 hardware the Linux timer runs at 100 Hz by default.  On
modern hardware that is probably much too slow to accurately
profile programs using the Python profiler.  Changing the value
in include/asm-i386/param.h from 100 to 1024 and recompiling the
kernel made a huge difference for me.  Perhaps we should include
a note in the profiler documentation.  I'm not sure if this
affects gprof as well but I suspect it does.

   Neil