On Oct 28, 2008, at 3:17 PM, Bob Mathias - Sysero llc Dev wrote:
> My next question is where can I get information on how to use
> dabo.trace() and
> @profile?
dabo.trace() is nothing more than typing:
import pdb
pdb.set_trace()
I got tired of typing that all over the place, and so I created that
shorthand for it. It does not modify pdb at all.
Using the profiling is pretty easy. Somewhere in your code add the
following:
from dabo.lib.profilehooks import profile
...and then decorate the method you want to profile by adding the
'@profile'. Run your code, and when your app exits, you get nicely
formatted profiling output. Use that to narrow down the performance
hogs in your code.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]