1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/include/Meta_Predictor.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace stage_1_ifetch { |
---|
14 | namespace predictor { |
---|
15 | namespace meta_predictor { |
---|
16 | |
---|
17 | |
---|
18 | string Meta_Predictor::statistics (uint32_t depth) |
---|
19 | { |
---|
20 | log_printf(FUNC,Meta_Predictor,"statistics","Begin"); |
---|
21 | |
---|
22 | string stat_component_Two_Level_Branch_Predictor_0 = (_param._have_meta_predictor==false)?"":component_Two_Level_Branch_Predictor_0->statistics(depth+1); |
---|
23 | string stat_component_Two_Level_Branch_Predictor_1 = (_param._have_meta_predictor==false)?"":component_Two_Level_Branch_Predictor_1->statistics(depth+1); |
---|
24 | string stat_component_Two_Level_Branch_Predictor_2 = component_Two_Level_Branch_Predictor_2->statistics(depth+1); |
---|
25 | string stat_component_Meta_Predictor_Glue = component_Meta_Predictor_Glue ->statistics(depth+1); |
---|
26 | |
---|
27 | string txt = _stat->print(depth, |
---|
28 | stat_component_Two_Level_Branch_Predictor_0 + |
---|
29 | stat_component_Two_Level_Branch_Predictor_1 + |
---|
30 | stat_component_Two_Level_Branch_Predictor_2 + |
---|
31 | stat_component_Meta_Predictor_Glue ); |
---|
32 | |
---|
33 | log_printf(FUNC,Meta_Predictor,"statistics","End"); |
---|
34 | |
---|
35 | return txt; |
---|
36 | }; |
---|
37 | |
---|
38 | }; // end namespace meta_predictor |
---|
39 | }; // end namespace predictor |
---|
40 | }; // end namespace stage_1_ifetch |
---|
41 | |
---|
42 | }; // end namespace behavioural |
---|
43 | }; // end namespace morpheo |
---|
44 | #endif |
---|