[#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. == Synopsis Declared in `<balb_performancemonitor.h>` [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 "Forward Iterator" concept over a collection of non‐modifiable performance statistics. | xref:BloombergLP/balb/PerformanceMonitor/Statistics.adoc[`Statistics`] | Defines the performance statistics collected for a monitored process. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/PerformanceMonitor/Measure.adoc[`Measure`] | Enumerates the set of performance measures this class can monitor. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/balb/PerformanceMonitor/2constructor-0f.adoc[`PerformanceMonitor`] [.small]#[constructor]# | Constructors | xref:BloombergLP/balb/PerformanceMonitor/2destructor.adoc[`~PerformanceMonitor`] [.small]#[destructor]# | Destroy this object. | xref:BloombergLP/balb/PerformanceMonitor/begin.adoc[`begin`] | Return an iterator positioned at the first set of collected performance statistics. | xref:BloombergLP/balb/PerformanceMonitor/collect.adoc[`collect`] | Collect performance statistics for each registered pid. | xref:BloombergLP/balb/PerformanceMonitor/end.adoc[`end`] | Return an iterator that represents the end of the sequence of sets of collected performance statistics. | xref:BloombergLP/balb/PerformanceMonitor/find.adoc[`find`] | Return an iterator to the statistics for the specified `pid`. | xref:BloombergLP/balb/PerformanceMonitor/numRegisteredPids.adoc[`numRegisteredPids`] | Return the number of processes registered for statistics collection. | xref:BloombergLP/balb/PerformanceMonitor/registerPid.adoc[`registerPid`] | Register a process with this performance monitor. | xref:BloombergLP/balb/PerformanceMonitor/resetStatistics.adoc[`resetStatistics`] | Reset the min, max, and average statistics for each monitored process. | xref:BloombergLP/balb/PerformanceMonitor/setCollectionInterval.adoc[`setCollectionInterval`] | Set the automatic statistics collection interval, in seconds. | xref:BloombergLP/balb/PerformanceMonitor/unregisterPid.adoc[`unregisterPid`] | Unregister the specified process `pid` from this performance monitor. | xref:BloombergLP/balb/PerformanceMonitor/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration<PerformanceMonitor, UsesBslmaAllocator>`] | Declare that this type uses a `bslma` allocator. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/balb/PerformanceMonitor/ConstIterator.adoc[BloombergLP::balb::PerformanceMonitor::ConstIterator]` | Provide a mechanism that models the "Forward Iterator" concept over a collection of non‐modifiable performance statistics. | `xref:BloombergLP/balb/PerformanceMonitor/Statistics.adoc[BloombergLP::balb::PerformanceMonitor::Statistics]` | Defines the performance statistics collected for a monitored process. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#