20 #ifndef _PORTABLE_PERF_ANALYZER_HH 21 #define _PORTABLE_PERF_ANALYZER_HH 23 #include "utilities.h" 26 template <
class Action>
30 MESSAGE(
"Portable_Perf_Analyzer Ctor");
33 INFOS(
"Copy Ctor not implemented");
37 MESSAGE(
"Portable_Perf_Analyzer Dtor");
68 for (
int i=1;
i<NB_TRIES; ++
i)
75 time_action = time_action / (double(
_nb_calc));
77 action.check_result();
81 for (
int i=1;
i<NB_TRIES; ++
i)
83 time_baseline = time_baseline/(double(
_nb_init));
90 time_action = time_action - time_baseline;
94 return action.nb_op_base()/(time_action*1000000.0);
134 #endif //_PORTABLE_PERF_ANALYZER_HH
~Portable_Perf_Analyzer(void)
Portable_Perf_Analyzer(const Portable_Perf_Analyzer &)
Portable_Perf_Analyzer(void)
double time_calculate(Action &action)
double eval_mflops(int size)
unsigned long long _nb_calc
unsigned long long _nb_init
BTL_DONT_INLINE double time_calculate(Action &action)
double time_init(Action &action)
unsigned long long get_nb_calc(void)