Python profiler and decorators

warspir warspir at gmail.com
Fri Jun 23 11:41:28 EDT 2006


Hi

I was wondering about this while working on profiling my program using the
profile module.

Say we have the following:

@dec
def func:
     blah blah blah

When profiling the whole program, what would the total time for func
represent? The time spent just in the original function or the time spent
spent in the function along with the execution of the decorator's code?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060623/d8a57477/attachment.html>


More information about the Python-list mailing list