[Python-3000] what to do with profilers in the stdlib

Guido van Rossum guido at python.org
Sat Aug 25 01:05:30 CEST 2007


I'm still a happy user of profile.py, so I'm probably not the right
one to drive this discussion. :-)

On 8/24/07, Neal Norwitz <nnorwitz at gmail.com> wrote:
> We ought to clean up the profiling modules.  There was a long
> discussion about this here:
>
> http://mail.python.org/pipermail/python-dev/2005-November/058212.html
>
> Much of the discussion revolved around whether to add lsprof in the
> stdlib.  That's been resolved.  It was added.  Now what do we do?
>
> I suggest merging profile and cProfile (which uses _lsprof) similar to
> how stringio and pickle are being merged.  This leaves hotshot as odd
> man out.  We should remove it.  If we don't remove it, we should try
> to merge these modules so they have the same API and capabilities as
> much as possible, even if they work in different ways.
>
> The hotshot doc states:
>
> Note
>
> The hotshot module focuses on minimizing the overhead while profiling,
> at the expense of long data post-processing times. For common usages
> it is recommended to use cProfile instead. hotshot is not maintained
> and might be removed from the standard library in the future.
>
> Caveat
>
> The hotshot profiler does not yet work well with threads. It is useful
> to use an unthreaded script to run the profiler over the code you're
> interested in measuring if at all possible.
>
> n
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list