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

skip at pobox.com skip at pobox.com
Sat Aug 25 02:16:53 CEST 2007


    Neal> The hotshot doc states:

    Neal> Note

    Neal> The hotshot module focuses on minimizing the overhead while
    Neal> profiling, at the expense of long data post-processing times. For
    Neal> common usages it is recommended to use cProfile instead. hotshot
    Neal> is not maintained and might be removed from the standard library
    Neal> in the future.

    Neal> Caveat

    Neal> The hotshot profiler does not yet work well with threads. It is
    Neal> useful to use an unthreaded script to run the profiler over the
    Neal> code you're interested in measuring if at all possible.

The cProfile module has the same benefit as hotshot (low run-time cost),
without the downside of long post-processing times.  On that basis alone I
would argue that hotshot be dropped.

Skip


More information about the Python-3000 mailing list