def meter_calls(fn):
    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        meter("%s_calls" % get_qualname(fn)).mark()
        return fn(*args, **kwargs)
    return wrapper
Decorator to the rate at which a function is called.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyformance-0.3.2/pyformance/registry.py/meter_calls