On Dec 4, 2006, at 11:36 PM, Paul McGuire wrote:
> 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
> lin
"monkeyboy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 PythonDeco
The output was from print_callees(). It appears as though print_stats()
and print_callees() return the same data, just in a different
orangization. There is supposed to be a "lineevents=1" option in
hotshot.Profile, for line timings, but it doesn't seem to work in
Python 2.4.
Thanks for your help
On 2006-12-04, monkeyboy <[EMAIL PROTECTED]> wrote:
> Thanks Neil,
>
> I looked at that, but maybe I don't understand the output. I
> was hoping to see the cummulative time for the function and
> then the time associated with each statement (line) within the
> function.
>
> Any suggestions?
I don'
Thanks Neil,
I looked at that, but maybe I don't understand the output. I was hoping
to see the cummulative time for the function and then the time
associated with each statement (line) within the function.
In the hotshot output below, I can see the function being called 100
times, which is corre
On 2006-12-04, monkeyboy <[EMAIL PROTECTED]> 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. T
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
--
http://mail.python.org/mailman/listinfo/python-list