BloombergLP::balb::PerformanceMonitor

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

Synopsis

Declared in <balb_performancemonitor.h>

class PerformanceMonitor;

Types

NameDescription
ConstIterator Provide a mechanism that models the "Forward Iterator" concept over a collection of non-modifiable performance statistics.
Statistics Defines the performance statistics collected for a monitored process.

Enums

NameDescription
Measure Enumerates the set of performance measures this class can monitor.

Member Functions

NameDescription
PerformanceMonitor [constructor]Constructors
~PerformanceMonitor [destructor]Destroy this object.
begin Return an iterator positioned at the first set of collected performance statistics.
collect Collect performance statistics for each registered pid.
end Return an iterator that represents the end of the sequence of sets of collected performance statistics.
find Return an iterator to the statistics for the specified pid.
numRegisteredPids Return the number of processes registered for statistics collection.
registerPid Register a process with this performance monitor.
resetStatistics Reset the min, max, and average statistics for each monitored process.
setCollectionInterval Set the automatic statistics collection interval, in seconds.
unregisterPid Unregister the specified process pid from this performance monitor.
operator BloombergLP::bslmf::NestedTraitDeclaration<PerformanceMonitor, UsesBslmaAllocator> Declare that this type uses a bslma allocator.

Friends

NameDescription
BloombergLP::balb::PerformanceMonitor::ConstIteratorProvide a mechanism that models the "Forward Iterator" concept over a collection of non-modifiable performance statistics.
BloombergLP::balb::PerformanceMonitor::StatisticsDefines the performance statistics collected for a monitored process.