[#BloombergLP-balb-PerformanceMonitor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::PerformanceMonitor
:relfileprefix: ../../
:mrdocs:

Provides a mechanism to collect performance statistics for an arbitrary number of processes running on the local machine&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class PerformanceMonitor;
----

== Types

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balb/PerformanceMonitor/ConstIterator.adoc[`ConstIterator`] 
| Provide a mechanism that models the &quot;Forward Iterator&quot; concept over a collection of non&hyphen;modifiable performance statistics&period;
| xref:BloombergLP/balb/PerformanceMonitor/Statistics.adoc[`Statistics`] 
| Defines the performance statistics collected for a monitored process&period;
|===


== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balb/PerformanceMonitor/Measure.adoc[`Measure`] 
| Enumerates the set of performance measures this class can monitor&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balb/PerformanceMonitor/2constructor-0f.adoc[`PerformanceMonitor`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/balb/PerformanceMonitor/2destructor.adoc[`&#126;PerformanceMonitor`] [.small]#[destructor]#
| Destroy this object&period;
| xref:BloombergLP/balb/PerformanceMonitor/begin.adoc[`begin`] 
| Return an iterator positioned at the first set of collected performance statistics&period;
| xref:BloombergLP/balb/PerformanceMonitor/collect.adoc[`collect`] 
| Collect performance statistics for each registered pid&period;
| xref:BloombergLP/balb/PerformanceMonitor/end.adoc[`end`] 
| Return an iterator that represents the end of the sequence of sets of collected performance statistics&period;
| xref:BloombergLP/balb/PerformanceMonitor/find.adoc[`find`] 
| Return an iterator to the statistics for the specified `pid`&period;
| xref:BloombergLP/balb/PerformanceMonitor/numRegisteredPids.adoc[`numRegisteredPids`] 
| Return the number of processes registered for statistics collection&period;
| xref:BloombergLP/balb/PerformanceMonitor/registerPid.adoc[`registerPid`] 
| Register a process with this performance monitor&period;
| xref:BloombergLP/balb/PerformanceMonitor/resetStatistics.adoc[`resetStatistics`] 
| Reset the min, max, and average statistics for each monitored process&period;
| xref:BloombergLP/balb/PerformanceMonitor/setCollectionInterval.adoc[`setCollectionInterval`] 
| Set the automatic statistics collection interval, in seconds&period;
| xref:BloombergLP/balb/PerformanceMonitor/unregisterPid.adoc[`unregisterPid`] 
| Unregister the specified process `pid` from this performance monitor&period;
| xref:BloombergLP/balb/PerformanceMonitor/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;PerformanceMonitor, UsesBslmaAllocator&gt;`] 
| Declare that this type uses a `bslma` allocator&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/balb/PerformanceMonitor/ConstIterator.adoc[BloombergLP::balb::PerformanceMonitor::ConstIterator]`
| Provide a mechanism that models the &quot;Forward Iterator&quot; concept over a collection of non&hyphen;modifiable performance statistics&period;
| `xref:BloombergLP/balb/PerformanceMonitor/Statistics.adoc[BloombergLP::balb::PerformanceMonitor::Statistics]`
| Defines the performance statistics collected for a monitored process&period;
|===


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