[#BloombergLP-balb-PerformanceMonitor-2constructor-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::PerformanceMonitor
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;balb&lowbar;performancemonitor&period;h&gt;`

Create a performance monitor that collects statistics on demand&period;


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

[.small]#xref:BloombergLP/balb/PerformanceMonitor/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a performance monitor that collects statistics on a schedule&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/balb/PerformanceMonitor/2constructor-09.adoc[PerformanceMonitor](
    xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[bdlmt::TimerEventScheduler]* scheduler,
    double interval,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/balb/PerformanceMonitor/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| memory allocator&semi; null uses the default
| *scheduler*
| timer scheduler used for automatic collection
| *interval*
| seconds between automatic collections&semi; non&hyphen;positive disables automatic collection
|===


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