Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Benchmark / marker.h
blob032e5d1771a567356628bcba3a740a8fdd6cdefe
1 #include "ace/High_Res_Timer.h"
2 #include "ace/Sched_Params.h"
3 #include "ace/Stats.h"
4 #include "ace/Throughput_Stats.h"
6 class Marker
8 public:
10 void accumulate_into (ACE_Throughput_Stats &throughput,
11 int which_method) const;
12 // Accumulate the throughput statistics into <throughput>
14 void dump_stats (const ACE_TCHAR* msg,
15 ACE_High_Res_Timer::global_scale_factor_type gsf,
16 int which_method);
17 // Print stats
19 void sample (ACE_hrtime_t throughput_diff,
20 ACE_hrtime_t latency_diff,
21 int which_method);
22 // get the sample.
24 private:
25 ACE_Throughput_Stats throughput_method_ready_;
26 // Keep throughput statistics on a per-thread basis
27 ACE_Throughput_Stats throughput_method_authenticate_;
28 // Keep throughput statistics on a per-thread basis
29 ACE_Throughput_Stats throughput_method_update_records_;
30 // Keep throughput statistics on a per-thread basis