BloombergLP::balm::DefaultMetricsManager::create

Create the default MetricsManager instance and return the address of the modifiable created instance. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed global allocator is used. The behavior is undefined unless 0 == MetricsManager::instance() prior to calling this method, or if this method is called from one thread while another thread is attempting to access the default metrics manager instance (i.e., this method is not thread-safe). Note that the returned default metrics manager instance is not configured with a publisher; clients must create a Publisher and add it to the default metrics manager in order to publish metrics.

Synopsis

Declared in <balm_defaultmetricsmanager.h>

static
MetricsManager*
create(bslma::Allocator* basicAllocator = 0);