Module decorators
source code
|
TimeIt
Decorator to measure the execution time of a function.
|
|
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
|
|
|
|
|
perf_log = logging.getLogger("omero.perf")
|
|
__FORMAT = "%-.120s"
|
|
__RESULT = " Rslt: "+ __FORMAT
|
|
__EXCEPT = " Excp: "+ __FORMAT
|
Imports:
time,
logging,
threading,
traceback,
exceptions,
omero,
wraps
Shortcut version of the TimeIt
decorator class. Logs at logging.DEBUG level.
|