#include <Basic_Stats.h>
Inheritance diagram for ACE_Basic_Stats:
Public Methods | |
ACE_Basic_Stats (void) | |
The number of samples is pre-allocated, and cannot changes once the class is initialized. More... | |
ACE_UINT32 | samples_count (void) const |
The number of samples received so far. More... | |
void | sample (ACE_UINT64 value) |
Record one sample. More... | |
void | accumulate (const ACE_Basic_Stats &rhs) |
Update the values to reflect the stats in rhs. More... | |
void | dump_results (const ACE_TCHAR *msg, ACE_UINT32 scale_factor) const |
Prints out the results, using. More... | |
Private Attributes | |
ACE_UINT32 | samples_count_ |
The number of samples. More... | |
ACE_UINT64 | min_ |
The minimum value. More... | |
ACE_UINT32 | min_at_ |
The number of the sample that had the minimum value. More... | |
ACE_UINT64 | max_ |
The maximum value. More... | |
ACE_UINT32 | max_at_ |
The number of the sample that had the maximum value. More... | |
ACE_UINT64 | sum_ |
The sum of all the values. More... | |
ACE_UINT64 | sum2_ |
The sum of the square of all the values. More... |
Normally used for latency statistics.
|
The number of samples is pre-allocated, and cannot changes once the class is initialized.
|
|
Update the values to reflect the stats in rhs.
|
|
Prints out the results, using.
|
|
Record one sample.
|
|
The number of samples received so far.
|
|
The maximum value.
|
|
The number of the sample that had the maximum value.
|
|
The minimum value.
|
|
The number of the sample that had the minimum value.
|
|
The number of samples.
|
|
The sum of the square of all the values.
|
|
The sum of all the values.
|