Re: how can i profile every line of code

2008-02-21 Thread Tim Lesher
On Feb 21, 3:27 pm, Tim Lesher <[EMAIL PROTECTED]> wrote:
> On Feb 21, 10:06 am, scsoce <[EMAIL PROTECTED]> 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:
>
> http://docs.python.org/lib/module-hotshot.html

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

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: how can i profile every line of code

2008-02-21 Thread Tim Lesher
On Feb 21, 10:06 am, scsoce <[EMAIL PROTECTED]> 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:

http://docs.python.org/lib/module-hotshot.html


-- 
http://mail.python.org/mailman/listinfo/python-list


how can i profile every line of code

2008-02-21 Thread scsoce
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.
scsoce
-- 
http://mail.python.org/mailman/listinfo/python-list