[Python-Dev] s/hotshot/lsprof

Barry Warsaw barry at python.org
Mon Nov 21 15:25:05 CET 2005

On Mon, 2005-11-21 at 12:14 +0100, Armin Rigo wrote:

> Still, people generally agree that profile.py, while taking a longer
> time overall, gives more meaningful results than hotshot.  Now Brett's
> student, Floris, extended hotshot to allow custom timers.  This is
> essential, because it enables testing.  The timing parts of hotshot were
> not tested previously.

hotshot used to produce incorrect data because it couldn't track exits
from functions due to exception propagation.  We fixed that a while back
and since then it's been pretty useful for us.  While I'm not sure I
like the idea of three profilers in the stdlib, I think in this case
(unless they're incompatible) it would make sense to keep hotshot
around, at least until any new profiler proves it's better over a couple
of releases.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20051121/79efc9da/attachment.pgp

More information about the Python-Dev mailing list