Accumulator Class

An Accumulator object is created by an Event object to accumulate performance data. An Accumulator depends on the 64-bit counter maintained by their parent Event object, which is used for computing the average accumulation value over some period of time. Each Accumulator maintains four values: a sum, a sum of squares, a min, and a max. While the min and max values are reset at the beginning of each aggregation interval (otherwise, they would become meaningless over the lifetime of the application), the two sums are cumulative over the life of the Accumulator and are initialized to zero.

The recordValue member function may be used to change the value of the Accumulator, and optionally increment the value of the associated Event counter as well. The associated Event may be determined using the getEvent member function.

For more information about creating and using Accumulators, see the topics in the section Recording Values with Accumulators.

Constructor
lookupAccumulator - Creates an Accumulator object as a subordinate to an Event.
Member Functions
getEvent - Returns the Event object associated with the Accumulator.
recordValue - Increases the value of the Accumulator, and optionally increments the value of the associated Event counter.
See Also
Container Class
Event Class
Listener Class