BloombergLP::balm::Collector::loadAndReset

Load into the specified record the id of the metric being collected as well as the current count, total, minimum, and maximum aggregated values for that metric; then reset the count, total, minimum, and maximum values to their default states. After this operation, the count and total values will be 0, the minimum value will be MetricRecord::k_DEFAULT_MIN, and the maximum value will be MetricRecord::k_DEFAULT_MAX. Note that this operation is logically equivalent to calling the load and then the reset methods except that it is performed as a single atomic operation.

Synopsis

Declared in <balm_collector.h>

void
loadAndReset(MetricRecord* record);