BloombergLP::bdlm::MetricsRegistry::disableMetricsCollection

Disable metrics collection. If there is an associated metrics adapter, all the collection callbacks are unregistered from that adapter. The adapter remains associated with this registry. Collection callbacks registered with this registry are not registered with the associated adapter until metrics collections is enabled. Return 0 on success, and a non-zero value otherwise. Metrics collection is enabled at construction of this registry.

Synopsis

Declared in <bdlm_metricsregistry.h>

int
disableMetricsCollection();