def define_average(name, description, manager=counters):
 counter = _AverageCounter(name, description)
 manager.register(counter)
 return counter

def define_average ( name , description , manager = counters ) : counter = _AverageCounter ( name , description ) manager . register ( counter ) return counter
creates a performance counter which tracks the average value of a quantity which varies for discrete occurrences of an event .