Ben Kaplan case.edu> writes:
> There's nothing special about profile.run- you have to hand it something to
> execute, not something already executed. Try calling
> Profile.run(doSomething) # no parenthesis for doSomething.
your hint and REREADING THE DOCUMENTATION made me realize it
was the QUO
On 2010-06-30 06:39, rik wrote:
> Ben Kaplan case.edu> writes:
>
> >
> > Let's take this code as an example:
> >
> > def foo() :
> > return None
> >
> > import profile
> > profile.run(foo())
> >
> > What does the profile.run call do?
> >
> > First thin it does is evaluate foo(), which r
Ben Kaplan case.edu> writes:
> First thin it does is evaluate foo(), which returns None. So you're calling
> profile.run(None)
>
> There's nothing special about profile.run- you have to hand it something to
> execute, not something already executed. Try calling
> Profile.run(doSomething) # no p
Ben Kaplan case.edu> writes:
>
> Let's take this code as an example:
>
> def foo() :
> return None
>
> import profile
> profile.run(foo())
>
> What does the profile.run call do?
>
> First thin it does is evaluate foo(), which returns None. So you're calling
> profile.run(None)
>
> Ther
> -Original Message-
> From: python-list-bounces+bsk16=case@python.org [mailto:python-list-
> bounces+bsk16=case@python.org] On Behalf Of rik
> Sent: Tuesday, June 29, 2010 10:52 PM
> To: python-list@python.org
> Subject: Re: Python profiler usage with
harit gmail.com> writes:
>
> Hi,
>
> I have a specific question regarding the usage of profiler. I am new
> to python programming I am trying to profile a function which I want
> to invoke as a class method, something like this
>
> import profile
>
> class Class:
>
> def doSomething():
>
>
Hi,
I have a specific question regarding the usage of profiler. I am new
to python programming I am trying to profile a function which I want
to invoke as a class method, something like this
import profile
class Class:
def doSomething():
do here ..
def callMethod():
**self.doSomethin