#include <ace/Stats.h>
class ACE_Throughput_Stats {
public:
ACE_Throughput_Stats (void);
void sample (ACE_UINT64 throughput, ACE_UINT64 latency);
void accumulate (const ACE_Throughput_Stats &throughput);
void dump_results ( const ASYS_TCHAR* msg, ACE_UINT32 scale_factor );
private:
ACE_UINT64 samples_count_;
ACE_UINT64 latency_min_;
ACE_UINT32 latency_min_at_;
ACE_UINT64 latency_max_;
ACE_UINT32 latency_max_at_;
ACE_UINT64 latency_sum_;
ACE_UINT64 latency_sum2_;
ACE_UINT64 throughput_last_;
ACE_UINT64 throughput_sum_x_;
ACE_UINT64 throughput_sum_x2_;
ACE_UINT64 throughput_sum_y_;
ACE_UINT64 throughput_sum_y2_;
ACE_UINT64 throughput_sum_xy_;
};
ACE_Throughput_Stats (void);
void sample (ACE_UINT64 throughput, ACE_UINT64 latency);
void accumulate (const ACE_Throughput_Stats &throughput);
throughput
void dump_results (const ASYS_TCHAR* msg, ACE_UINT32 scale_factor);
ACE_UINT64 samples_count_;
ACE_UINT64 latency_min_;
ACE_UINT32 latency_min_at_;
ACE_UINT64 latency_max_;
ACE_UINT32 latency_max_at_;
ACE_UINT64 latency_sum_;
ACE_UINT64 latency_sum2_;
ACE_UINT64 throughput_last_;
ACE_UINT64 throughput_sum_x_;
ACE_UINT64 throughput_sum_x2_;
ACE_UINT64 throughput_sum_y_;
ACE_UINT64 throughput_sum_y2_;
ACE_UINT64 throughput_sum_xy_;