Package omero :: Package util :: Module decorators
[hide private]
[frames] | no frames]

Module decorators

source code

Classes [hide private]
  TimeIt
Decorator to measure the execution time of a function.
Functions [hide private]
 
perf(func)
Decorator for (optionally) printing performance statistics
source code
 
remoted(func)
Decorator for catching any uncaught exception and converting it to an InternalException
source code
 
locked(func)
Decorator for using the self._lock argument of the calling instance
source code
 
timeit(func)
Shortcut version of the TimeIt decorator class.
source code
Variables [hide private]
  perf_log = logging.getLogger("omero.perf")
  __FORMAT = "%-.120s"
  __RESULT = " Rslt: "+ __FORMAT
  __EXCEPT = " Excp: "+ __FORMAT

Imports: time, logging, threading, traceback, exceptions, omero, wraps


Function Details [hide private]

timeit(func)

source code 

Shortcut version of the TimeIt decorator class. Logs at logging.DEBUG level.