[#BloombergLP-balm-DefaultMetricsManager-create-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/DefaultMetricsManager.adoc[DefaultMetricsManager]::create
:relfileprefix: ../../../
:mrdocs:

`create` overloads

== Synopses

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

Create the default `MetricsManager` instance and return the address of the modifiable created instance&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed global allocator is used&period; The behavior is undefined unless `0 &equals;&equals; MetricsManager&colon;&colon;instance()` prior to calling this method, or if this method is called from one thread while another thread is attempting to access the default metrics manager instance (i&period;e&period;, this method is _not_ thread&hyphen;safe)&period; Note that the returned default metrics manager instance is not configured with a publisher&semi; clients must create a `Publisher` and add it to the default metrics manager in order to publish metrics&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]*
xref:BloombergLP/balm/DefaultMetricsManager/create-0c.adoc[create](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balm/DefaultMetricsManager/create-0c.adoc[_» more&period;&period;&period;_]#

Create the default `MetricsManager` instance and configure it with a `StreamPublisher` that will publish recorded metrics to the specified `stream`, then return the address of the modifiable created metrics manager instance&period; Optionally specify `basicAllocator` to use to obtain memory&period; If `basicAllocator` is 0, the currently installed global allocator is used&period; The behavior is undefined unless `0 &equals;&equals; MetricsManager&colon;&colon;instance()` prior to calling this method, or if this method is called from one thread while another thread is attempting to access the default metrics manager instance (i&period;e&period;, this method is _not_ thread&hyphen;safe)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]*
xref:BloombergLP/balm/DefaultMetricsManager/create-06.adoc[create](
    std::ostream& stream,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balm/DefaultMetricsManager/create-06.adoc[_» more&period;&period;&period;_]#


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