Create a scoped guard that creates a default metrics manager publishing to the specified stream.
Declared in <balm_defaultmetricsmanager.h>
DefaultMetricsManagerScopedGuard(
std::ostream& stream,
bslma::Allocator* basicAllocator = 0);
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.
| Name | Description |
|---|---|
| stream | output stream to which recorded metrics are published |
| basicAllocator | memory allocator; null uses the default |