[#BloombergLP-balm-DefaultMetricsManagerScopedGuard-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard.adoc[DefaultMetricsManagerScopedGuard]::DefaultMetricsManagerScopedGuard
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;balm&lowbar;defaultmetricsmanager&period;h&gt;`

Create a scoped guard which invokes `DefaultMetricsManager&colon;&colon;create`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard/2constructor-01.adoc[DefaultMetricsManagerScopedGuard](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a scoped guard that creates a default metrics manager publishing to the specified `stream`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard/2constructor-00.adoc[DefaultMetricsManagerScopedGuard](
    std::ostream& stream,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard/2constructor-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
| *stream*
| output stream to which recorded metrics are published
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
