[Python-Dev] Hotshot
Nick Bastin
nbastin at opnet.com
Fri Jan 23 17:52:28 EST 2004
On Jan 23, 2004, at 5:29 PM, Fred L. Drake, Jr. wrote:
> HotShot has had some attention, and has been found useful, but I don't
> think of it as really finished. Issues have been reported relating to
> making measurements when threads are involved, but I've not had any
> time available for it.
>
> There is some documentation in the Library Reference:
>
> http://www.python.org/doc/current/lib/module-hotshot.html
>
> What's in the standard library contains the low-level profiler and a
> hotshot.stats module that allows the same kind of analysis and
> reporting as the pstats module supports for the older profile module.
There was some note in a presentation you gave quite a while ago that
HotShot could profile C extension functions, but I believe that would
have required a change to the main python interpreter loop. Does it
actually allow the profiling of extension functions, and was it via
some previously existing mechanism in python, or did the interpreter
change? (at least the last time I was in eval_frame, CALL_FUNCTION
wasn't profiled if PyCFunction_Check returned true - I actually
modified this at one point except in cases where fast_cfunction was
used, but at least in 2.2.2 the standard distribution didn't seem to
have the ability to profile extension functions).
--
Nick
More information about the Python-Dev
mailing list