Python profiler usage with objects

rik rbelew at ucsd.edu
Wed Jun 30 02:59:32 EDT 2010


Ben Kaplan <bsk16 <at> 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 parenthesis for doSomething.

i'm reading your message more carefully, and so tried calling
profile.run(main), without any parens (and absorbing the
argument into the function's body for this test).  same error!?




More information about the Python-list mailing list