[59] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Statistics.h" |
---|
| 10 | |
---|
| 11 | #include <sstream> |
---|
| 12 | using namespace std; |
---|
| 13 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | namespace core { |
---|
| 17 | namespace multi_execute_loop { |
---|
| 18 | namespace execute_loop { |
---|
| 19 | namespace multi_execute_unit { |
---|
| 20 | namespace execute_unit { |
---|
| 21 | namespace load_store_unit { |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | #undef FUNCTION |
---|
| 25 | #define FUNCTION "Load_store_unit::print" |
---|
| 26 | string Statistics::print (uint32_t depth) |
---|
| 27 | { |
---|
| 28 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
| 29 | |
---|
| 30 | string tab = string(depth,'\t'); |
---|
| 31 | ostringstream msg; |
---|
| 32 | |
---|
| 33 | msg << tab << "<load_store_unit name=\"" << _name << "\" >" << endl |
---|
| 34 | << print_body(depth+1) << endl |
---|
| 35 | << tab << "</load_store_unit>" << endl; |
---|
| 36 | |
---|
| 37 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
| 38 | |
---|
| 39 | return msg.str(); |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | #undef FUNCTION |
---|
| 43 | #define FUNCTION "Load_store_unit::operator<<" |
---|
| 44 | ostream& operator<< (ostream& output_stream , |
---|
| 45 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::load_store_unit::Statistics & x) |
---|
| 46 | { |
---|
| 47 | log_printf(FUNC,Load_store_unit,FUNCTION,"Begin"); |
---|
| 48 | |
---|
| 49 | output_stream << x.print(0); |
---|
| 50 | |
---|
| 51 | log_printf(FUNC,Load_store_unit,FUNCTION,"End"); |
---|
| 52 | |
---|
| 53 | return output_stream; |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | }; // end namespace load_store_unit |
---|
| 57 | }; // end namespace execute_unit |
---|
| 58 | }; // end namespace multi_execute_unit |
---|
| 59 | }; // end namespace execute_loop |
---|
| 60 | }; // end namespace multi_execute_loop |
---|
| 61 | }; // end namespace core |
---|
| 62 | |
---|
| 63 | }; // end namespace behavioural |
---|
| 64 | }; // end namespace morpheo |
---|
| 65 | #endif |
---|