grr/core/grr_response_core/stats/stats_utils.py
def Decorated(*args, **kwargs):
      """Calls a decorated function then increments a counter."""
      try:
        return func(*args, **kwargs)
      finally:
        stats_collector_instance.Get().IncrementCounter(
            self._metric_name, fields=self._fields)
Calls a decorated function then increments a counter.
Calls a decorated function then increments a counter.
Calls a decorated function then increments a counter .
def Decorated(*args, **kwargs):
      try:
        return func(*args, **kwargs)
      finally:
        stats_collector_instance.Get().IncrementCounter(
            self._metric_name, fields=self._fields)
def Decorated ( * args , ** kwargs ) : try : return func ( * args , ** kwargs ) finally : stats_collector_instance . Get ( ) . IncrementCounter ( self . _metric_name , fields = self . _fields )
Calls a decorated function then increments a counter.
Calls a decorated function then increments a counter .
"""Calls a decorated function then increments a counter."""