diff options
Diffstat (limited to 'ACE/TAO/tests/Portable_Interceptors/Benchmark/marker.h')
-rw-r--r-- | ACE/TAO/tests/Portable_Interceptors/Benchmark/marker.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/TAO/tests/Portable_Interceptors/Benchmark/marker.h b/ACE/TAO/tests/Portable_Interceptors/Benchmark/marker.h new file mode 100644 index 00000000000..4debcac05d0 --- /dev/null +++ b/ACE/TAO/tests/Portable_Interceptors/Benchmark/marker.h @@ -0,0 +1,33 @@ +// $Id$ + +#include "ace/High_Res_Timer.h" +#include "ace/Sched_Params.h" +#include "ace/Stats.h" +#include "ace/Throughput_Stats.h" + +class Marker +{ + public: + + void accumulate_into (ACE_Throughput_Stats &throughput, + int which_method) const; + // Accumulate the throughput statistics into <throughput> + + void dump_stats (const ACE_TCHAR* msg, + ACE_UINT32 gsf, + int which_method); + // Print stats + + void sample (ACE_hrtime_t throughput_diff, + ACE_hrtime_t latency_diff, + int which_method); + // get the sample. + + private: + ACE_Throughput_Stats throughput_method_ready_; + // Keep throughput statistics on a per-thread basis + ACE_Throughput_Stats throughput_method_authenticate_; + // Keep throughput statistics on a per-thread basis + ACE_Throughput_Stats throughput_method_update_records_; + // Keep throughput statistics on a per-thread basis +}; |