BloombergLP::balm::DefaultMetricsManagerScopedGuard::DefaultMetricsManagerScopedGuard

Create a scoped guard which invokes DefaultMetricsManager::create() to create a default metrics manager instance that is configured with a stream publisher that will publish collected metrics to the specified stream. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed global allocator is used. The behavior is undefined unless DefaultMetricsManager::instance() is 0 prior to creating the guard.

Synopsis

Declared in <balm_defaultmetricsmanager.h>

DefaultMetricsManagerScopedGuard(
    std::ostream& stream,
    bslma::Allocator* basicAllocator = 0);