what does "execfile" mean within profiler output and why does it not have a attached line number

Rahul nospam at nospam.invalid
Tue Apr 7 02:09:21 CEST 2009


Robert Kern <robert.kern at gmail.com> wrote in
news:mailman.3316.1238893185.11746.python-list at python.org: 

> 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



More information about the Python-list mailing list