[statsd] add a statsd_timethis context manager
This context manager allows to report to statsd the execution time of any
piece of code, without the need for it to be a function or a method, like::
def some_function():
do_stuff()
with statsd_timethis('some context message'):
do_that()
ensure_this()
.. _cwvreg_module:
:mod:`cubicweb.cwvreg`
======================
.. automodule:: cubicweb.cwvreg
.. autoclass:: CWRegistryStore
:show-inheritance:
:members:
:undoc-members:
.. autoclass:: CWRegistry
:show-inheritance:
:members: schema, poss_visible_objects, select
.. autoclass:: InstancesRegistry
:show-inheritance:
:members:
.. autoclass:: ETypeRegistry
:show-inheritance:
:members:
.. autoclass:: ViewsRegistry
:show-inheritance:
:members:
.. autoclass:: ActionsRegistry
:show-inheritance:
:members:
.. autoclass:: CtxComponentsRegistry
:show-inheritance:
:members:
.. autoclass:: BwCompatCWRegistry
:show-inheritance:
:members:
:mod:`logilab.common.registry`
==============================
.. automodule:: logilab.common.registry