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

Name

Description

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

Name

Description

Measure

Enumerates the set of performance measures this class can monitor.

Member Functions

Name

Description

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

Name

Description

BloombergLP::balb::PerformanceMonitor::ConstIterator

Provide a mechanism that models the "Forward Iterator" concept over a collection of non‐modifiable performance statistics.

BloombergLP::balb::PerformanceMonitor::Statistics

Defines the performance statistics collected for a monitored process.

Created with MrDocs