1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/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_read_unit { |
---|
20 | namespace read_unit { |
---|
21 | namespace reservation_station { |
---|
22 | |
---|
23 | |
---|
24 | #undef FUNCTION |
---|
25 | #define FUNCTION "Reservation_station::print" |
---|
26 | string Statistics::print (uint32_t depth) |
---|
27 | { |
---|
28 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
29 | |
---|
30 | string tab = string(depth,'\t'); |
---|
31 | ostringstream msg; |
---|
32 | |
---|
33 | msg << tab << "<reservation_station name=\"" << _name << "\" >" << endl |
---|
34 | << print_body(depth+1) << endl |
---|
35 | << tab << "</reservation_station>" << endl; |
---|
36 | |
---|
37 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
38 | |
---|
39 | return msg.str(); |
---|
40 | }; |
---|
41 | |
---|
42 | #undef FUNCTION |
---|
43 | #define FUNCTION "Reservation_station::operator<<" |
---|
44 | ostream& operator<< (ostream& output_stream , |
---|
45 | morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Statistics & x) |
---|
46 | { |
---|
47 | log_printf(FUNC,Reservation_station,FUNCTION,"Begin"); |
---|
48 | |
---|
49 | output_stream << x.print(0); |
---|
50 | |
---|
51 | log_printf(FUNC,Reservation_station,FUNCTION,"End"); |
---|
52 | |
---|
53 | return output_stream; |
---|
54 | }; |
---|
55 | |
---|
56 | }; // end namespace reservation_station |
---|
57 | }; // end namespace read_unit |
---|
58 | }; // end namespace multi_read_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 |
---|