[#BloombergLP-balb-PerformanceMonitor-2constructor-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PerformanceMonitor.adoc[PerformanceMonitor]::PerformanceMonitor :relfileprefix: ../../../ :mrdocs: Create an instance of this class that uses the specified `scheduler` to automatically collect performance statistics every specified `interval` (specified in seconds). Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. A non‐positive `interval` value indicates that performance statistics should _not_ be automatically collected‐‐in this case the user is responsible for manually calling the `collect` function. == Synopsis Declared in `<balb_performancemonitor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- PerformanceMonitor( xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[bdlmt::TimerEventScheduler]* scheduler, double interval, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#