#include <Throughput_Stats.h>
Public Member Functions | |
ACE_Throughput_Stats (void) | |
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, ACE_UINT32 scale_factor) |
Print down the stats. | |
Static Public Member Functions | |
static void | dump_throughput (const ACE_TCHAR *msg, ACE_UINT32 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. |
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_UINT32 | scale_factor | |||
) |
Print down the stats.
void ACE_Throughput_Stats::dump_throughput | ( | const ACE_TCHAR * | msg, | |
ACE_UINT32 | scale_factor, | |||
ACE_UINT64 | elapsed_time, | |||
ACE_UINT32 | samples_count | |||
) | [static] |
Dump the average throughput stats.
void ACE_Throughput_Stats::sample | ( | ACE_UINT64 | throughput, | |
ACE_UINT64 | latency | |||
) |
Store one sample.
The last throughput measurement.