|
BDE 4.39.x Production Release
|
#include <balm_defaultmetricsmanager.h>
This class implements a scoped guard that, on construction, creates the default instance of the metrics manager, and, on destruction, destroys that instance.
Public Member Functions | |
| DefaultMetricsManagerScopedGuard (bsl::ostream &stream, bslma::Allocator *basicAllocator=0) | |
| DefaultMetricsManagerScopedGuard (bslma::Allocator *basicAllocator=0) | |
| ~DefaultMetricsManagerScopedGuard () | |
| MetricsManager * | instance () const |
|
inline |
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.
DefaultMetricsManager::instance() is 0 prior to creating the guard.
|
inline |
Create a scoped guard which invokes the DefaultMetricsManager::create method. Optionally specify a basicAllocator used to obtain memory. If basicAllocator is 0, the currently installed global allocator is used.
0 == DefaultMetricsManager::instance() prior to creating the guard. Publisher object and add it to the default metrics manager in order to publish metrics.
|
inline |
Destroy this scoped guard which invokes DefaultMetricsManager::destroy().
|
inline |
Return the address of the MetricsManager object managed by this scoped guard.