Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Benchmark / marker.h
blob8d506979e33f55091cfac1c5d71ded3a0fc6a0d1
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:
9 void accumulate_into (ACE_Throughput_Stats &throughput,
10 int which_method) const;
11 // Accumulate the throughput statistics into <throughput>
13 void dump_stats (const ACE_TCHAR* msg,
14 ACE_High_Res_Timer::global_scale_factor_type gsf,
15 int which_method);
16 // Print stats
18 void sample (ACE_hrtime_t throughput_diff,
19 ACE_hrtime_t latency_diff,
20 int which_method);
21 // get the sample.
23 private:
24 ACE_Throughput_Stats throughput_method_ready_;
25 // Keep throughput statistics on a per-thread basis
26 ACE_Throughput_Stats throughput_method_authenticate_;
27 // Keep throughput statistics on a per-thread basis
28 ACE_Throughput_Stats throughput_method_update_records_;
29 // Keep throughput statistics on a per-thread basis