Execution time of lines within a function
Paul McGuire
ptmcg at austin.rr._bogus_.com
Mon Dec 4 18:36:12 EST 2006
"monkeyboy" <fsenkel at lynx.neu.edu> wrote in message
news:1165240166.203915.115460 at n67g2000cwd.googlegroups.com...
> Hello,
>
> 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?
>
> Thank you
>
The PythonDecoratorLibrary page on the Python wiki has a link to a @profile
decorator, that I have used to profile the contents of targeted functions
(only just now, I don't seem to be able to get to the wiki to get the exact
link).
-- Paul
More information about the Python-list
mailing list