[Erp5-report] r25581 - /erp5/trunk/utils/tiny_profiler/profiler.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Feb 16 14:53:15 CET 2009


Author: vincent
Date: Mon Feb 16 14:53:12 2009
New Revision: 25581

URL: http://svn.erp5.org?rev=25581&view=rev
Log:
Make wrapper ZPubliqher-friendly.

Modified:
    erp5/trunk/utils/tiny_profiler/profiler.py

Modified: erp5/trunk/utils/tiny_profiler/profiler.py
URL: http://svn.erp5.org/erp5/trunk/utils/tiny_profiler/profiler.py?rev=25581&r1=25580&r2=25581&view=diff
==============================================================================
--- erp5/trunk/utils/tiny_profiler/profiler.py [utf8] (original)
+++ erp5/trunk/utils/tiny_profiler/profiler.py [utf8] Mon Feb 16 14:53:12 2009
@@ -81,6 +81,10 @@
       if caller_id is not None:
         PROFILER_STACK[-1] = (caller_id, time())
     return result
+  wrapped.__doc__ = method.__doc__
+  wrapped.__name__ = method.__name__
+  wrapped.func_code.co_argcount = func_code.co_argcount
+  wrapped.func_code.co_varnames = func_code.co_varnames
   return wrapped
 
 def sort_key(a):




More information about the Erp5-report mailing list