[#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 `<balb_performancemonitor.h>` Create a performance monitor that collects statistics on demand. [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..._]# Create a performance monitor that collects statistics on a schedule. [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..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *scheduler* | timer scheduler used for automatic collection | *interval* | seconds between automatic collections; non‐positive disables automatic collection |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#