20 #ifndef _X86_PERF_ANALYSER_HH 21 #define _X86_PERF_ANALYSER_HH 26 template<
class ACTION>
31 MESSAGE(
"X86_Perf_Analyzer Ctor");
35 INFOS(
"Copy Ctor not implemented");
39 MESSAGE(
"X86_Perf_Analyzer Dtor");
49 double calculate_time=0.0;
50 double baseline_time=0.0;
52 for (
int j=0 ;
j < nb_loop ;
j++){
67 if (
j==0) action.check_result();
84 double corrected_time = (calculate_time-baseline_time)/
double(nb_loop);
94 return action.nb_op_base()/(corrected_time*1000000.0);
unsigned long long _nb_sample
X86_Perf_Analyzer(unsigned long long nb_sample=DEFAULT_NB_SAMPLE)
X86_Perf_Analyzer(const X86_Perf_Analyzer &)
void find_frequency(void)
#define DEFAULT_NB_SAMPLE
double get_shortest_clicks(void)
double eval_mflops(int size)