#ifdef STATISTICS /* * $Id$ * * [ Description ] * */ #include "Behavioural/Generic/Group/include/Statistics.h" #include using namespace std; namespace morpheo { namespace behavioural { namespace generic { namespace group { string Statistics::print_body (uint32_t depth) { string tab = string(depth,'\t'); ostringstream msg; for (uint32_t i=0; i<_nb_statistics; i++) { uint32_t nb_cycle = (_counters[i]->_nb_cycle_none_use + _counters[i]->_nb_cycle_full_use + _counters[i]->_nb_cycle_normal_use); uint32_t cycle_begin = compute_cycle_begin(i); uint32_t cycle_end = compute_cycle_end (i,nb_cycle); msg << tab << "\t" << endl << tab << "\t\t_nb_cycle_none_use << "\" /> " << endl << tab << "\t\t_nb_cycle_full_use << "\" /> " << endl << tab << "\t\t_nb_cycle_normal_use << "\" /> " << endl << tab << "\t\t_nb_use << "\" /> " << endl << tab << "\t" << endl; } return msg.str(); }; }; // end namespace group }; // end namespace generic }; // end namespace behavioural }; // end namespace morpheo #endif