Execution time of lines within a function

Neil Cerutti horpner at yahoo.com
Mon Dec 4 09:17:18 EST 2006


On 2006-12-04, monkeyboy <fsenkel at lynx.neu.edu> wrote:
> I have a function that hotshot says is very slow. I can get the
> aggregate execution time, but is there a way to get the
> execution time of each line so I can find the bottleneck?

Try 'print_callees' on the stats object for your bottleneck. That
may help.

-- 
Neil Cerutti



More information about the Python-list mailing list