BloombergLP::balb::PerformanceMonitor::Statistics

Defines the performance statistics collected for a monitored process. Note that this class is not fully value-semantic. It is intended to provide a read-only view of a set of collected performance statistics.

Synopsis

Declared in <balb_performancemonitor.h>

class Statistics;

Member Functions

NameDescription
Statistics [constructor]Constructors
avgValue Return the average of the collected values for the specified metric, or an unspecified value if no values have been collected.
description Return the user-supplied description of the process identified by the result of the pid() function.
elapsedTime Return the number of seconds (in wall time) that have elapsed since the startup the process identified by the result of the pid() function.
latestValue Return the latest collected value for the specified measure, or 0 if no values are yet available.
maxValue Return the maximum collected value for the specified measure, or a large negative value if no values have been collected.
minValue Return the minimum collected value for the specified measure, or a large positive value if no values have been collected.
pid Return the pid for which these statistics were collected.
print print overloads
reset Reset this object to the state in which no samples have been collected. Note that although this method is public, it can't be called directly by users, since PerformanceMonitor provides only const access to statistics.
startupTime Return the startup time in Coordinated Universal Time.
operator BloombergLP::bslmf::NestedTraitDeclaration<Statistics, UsesBslmaAllocator> Declare that this type uses a bslma allocator.