def meter_calls(fn):
 @functools.wraps(fn)
 def wrapper(*args, **kwargs):
  meter(('%s_calls' % get_qualname(fn))).mark()
  return fn(*args, **kwargs)
 return wrapper

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 .