#include <balb_performancemonitor.h>
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.
See balb_performancemonitor
◆ Statistics() [1/2]
balb::PerformanceMonitor::Statistics::Statistics |
( |
bslma::Allocator * |
basicAllocator = 0 | ) |
|
|
explicit |
Create an instance of this class. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ Statistics() [2/2]
Create a Statistics
object aggregating the same statistics values as the specified original
object. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ avgValue()
double balb::PerformanceMonitor::Statistics::avgValue |
( |
Measure |
measure | ) |
const |
|
inline |
Return the average of the collected values for the specified metric
.
◆ BSLMF_NESTED_TRAIT_DECLARATION()
◆ description()
const bsl::string & balb::PerformanceMonitor::Statistics::description |
( |
| ) |
const |
|
inline |
Return the user-supplied description of the process identified by the result of the pid()
function.
◆ elapsedTime()
double balb::PerformanceMonitor::Statistics::elapsedTime |
( |
| ) |
const |
|
inline |
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()
double balb::PerformanceMonitor::Statistics::latestValue |
( |
Measure |
measure | ) |
const |
|
inline |
◆ maxValue()
double balb::PerformanceMonitor::Statistics::maxValue |
( |
Measure |
measure | ) |
const |
|
inline |
◆ minValue()
double balb::PerformanceMonitor::Statistics::minValue |
( |
Measure |
measure | ) |
const |
|
inline |
◆ pid()
int balb::PerformanceMonitor::Statistics::pid |
( |
| ) |
const |
|
inline |
◆ print() [1/3]
void balb::PerformanceMonitor::Statistics::print |
( |
bsl::ostream & |
os | ) |
const |
◆ print() [2/3]
void balb::PerformanceMonitor::Statistics::print |
( |
bsl::ostream & |
os, |
|
|
const char * |
measureIdentifier |
|
) |
| const |
Print the specified measureIdentifier
to the specified os
stream. The value of measureIdentifier
should be a string literal corresponding to the desired measure enumerator, e.g., e_CPU_TIME
.
◆ print() [3/3]
void balb::PerformanceMonitor::Statistics::print |
( |
bsl::ostream & |
os, |
|
|
Measure |
measure |
|
) |
| const |
◆ reset()
void balb::PerformanceMonitor::Statistics::reset |
( |
| ) |
|
Reset the min, max, and average values collected for each measure.
◆ startupTime()
const bdlt::Datetime & balb::PerformanceMonitor::Statistics::startupTime |
( |
| ) |
const |
|
inline |
◆ Collector< OsType >
friend class Collector< OsType > |
|
friend |
The documentation for this class was generated from the following file: