|
ACE 8.0.1
|
A simple class to make throughput and latency analysis. More...
#include <Throughput_Stats.h>


Public Member Functions | |
| ACE_Throughput_Stats ()=default | |
| Constructor. | |
| void | sample (ACE_UINT64 throughput, ACE_UINT64 latency) |
| Store one sample. | |
| void | accumulate (const ACE_Throughput_Stats &throughput) |
| Update the values to reflect the stats in throughput. | |
| void | dump_results (const ACE_TCHAR *msg, scale_factor_type scale_factor) |
| Print down the stats. | |
Public Member Functions inherited from ACE_Basic_Stats | |
| ACE_Basic_Stats () | |
| Constructor. | |
| ACE_UINT32 | samples_count () const |
| The number of samples received so far. | |
| void | sample (ACE_UINT64 value) |
| Record one sample. | |
| void | accumulate (const ACE_Basic_Stats &rhs) |
| Update the values to reflect the stats in rhs. | |
| void | dump_results (const ACE_TCHAR *msg, scale_factor_type scale_factor) const |
| Dump all the samples. | |
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. | |
Private Attributes | |
| ACE_UINT64 | throughput_last_ {} |
| The last throughput measurement. | |
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. | |
| ACE_UINT64 | min_ |
| The minimum value. | |
| ACE_UINT32 | min_at_ |
| The number of the sample that had the minimum value. | |
| ACE_UINT64 | max_ |
| The maximum value. | |
| ACE_UINT32 | max_at_ |
| The number of the sample that had the maximum value. | |
| ACE_UINT64 | sum_ |
| The sum of all the values. | |
A simple class to make throughput and latency analysis.
Keep the relevant information to perform throughput and latency analysis, including:
Accumulate results from several samples to obtain aggregated results, across several threads or experiments.
|
default |
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.