how can i profile every line of code

Tim Lesher tlesher at
Thu Feb 21 21:33:21 CET 2008

On Feb 21, 3:27 pm, Tim Lesher <tles... at> wrote:
> On Feb 21, 10:06 am, scsoce <scs... at> wrote:
> > I want to profile a function which has some lines of statement. It seem
> > that profile module only report function's stats instead of every  line
> > of code, how can i profile every line of code?
> > thanks.
> Use the hotshot profiler, and when creating the profiler instance,
> specify linetimings=True:

Err, that should be "lineevents=True", not linetimings.

More information about the Python-list mailing list