Create a scoped guard which invokes DefaultMetricsManager::create.

Synopsis

Declared in <balm_defaultmetricsmanager.h>

DefaultMetricsManagerScopedGuard(bslma::Allocator* basicAllocator = 0);

Description

Optionally specify a basicAllocator used to obtain memory. If basicAllocator is 0, the currently installed global allocator is used. The behavior is undefined unless 0 == DefaultMetricsManager::instance() prior to creating the guard. Note that the default metrics manager instance is not configured with a publisher; clients must create a Publisher object and add it to the default metrics manager in order to publish metrics.

Parameters

Name

Description

basicAllocator

memory allocator; null uses the default

Created with MrDocs