BloombergLP::balm::DefaultMetricsManagerScopedGuard::DefaultMetricsManagerScopedGuard

Constructors

Synopses

Declared in <balm_defaultmetricsmanager.h>

Create a scoped guard which invokes DefaultMetricsManager::create.

DefaultMetricsManagerScopedGuard(bslma::Allocator* basicAllocator = 0);
» more...

Create a scoped guard that creates a default metrics manager publishing to the specified stream.

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

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
streamoutput stream to which recorded metrics are published