ACE
6.2.8
|
A simple class to make throughput and latency analysis. More...
#include <Throughput_Stats.h>
Public Member Functions | |
ACE_Throughput_Stats (void) | |
Constructor. More... | |
void | sample (ACE_UINT64 throughput, ACE_UINT64 latency) |
Store one sample. More... | |
void | accumulate (const ACE_Throughput_Stats &throughput) |
Update the values to reflect the stats in throughput. More... | |
void | dump_results (const ACE_TCHAR *msg, scale_factor_type scale_factor) |
Print down the stats. More... | |
Public Member Functions inherited from ACE_Basic_Stats | |
ACE_Basic_Stats (void) | |
Constructor. 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, scale_factor_type scale_factor) const |
Dump all the samples. More... | |
Static Public Member Functions | |
static void | dump_throughput (const ACE_TCHAR *msg, scale_factor_type scale_factor, ACE_UINT64 elapsed_time, ACE_UINT32 samples_count) |
Dump the average throughput stats. More... | |
Private Attributes | |
ACE_UINT64 | throughput_last_ |
The last throughput measurement. More... | |
Additional Inherited Members | |
Public Types inherited from ACE_Basic_Stats | |
typedef ACE_UINT64 | scale_factor_type |
Public Attributes inherited from ACE_Basic_Stats | |
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... | |
A simple class to make throughput and latency analysis.
Keep the relevant information to perform throughput and latency analysis, including:
ACE_Throughput_Stats::ACE_Throughput_Stats | ( | void | ) |
Constructor.
void ACE_Throughput_Stats::accumulate | ( | const ACE_Throughput_Stats & | throughput | ) |
Update the values to reflect the stats in throughput.
void ACE_Throughput_Stats::dump_results | ( | const ACE_TCHAR * | msg, |
ACE_Basic_Stats::scale_factor_type | sf | ||
) |
Print down the stats.
|
static |
Dump the average throughput stats.
void ACE_Throughput_Stats::sample | ( | ACE_UINT64 | throughput, |
ACE_UINT64 | latency | ||
) |
Store one sample.
|
private |
The last throughput measurement.