Robert Kern <[email protected]> wrote in
news:[email protected]:
> To quickly find your hotspots, start by sorting by 'time' (that would
> be displayed as the 'tottime' column in the human-readable output).
> That tells you how much time is spent in each function itself,
> excluding the time it spends calling out to other functions. For
> example, per the docs under "Instant UserĀ Ts Manual" (which you might
> want to spend a little more time with):
>
> p.sort_stats('time').print_stats(10)
>
>
Thanks Robert. I was executing the profiler on the commandline like so:
python -m profile ~/bin/visualize.py *.nc
Is there any way to pass further options of the form sort etc. via this
invocation. The manual did not specify usage of this form.
--
Rahul
--
http://mail.python.org/mailman/listinfo/python-list