1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Decod_statistics_allocation.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/include/Decod.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_front_end { |
---|
15 | namespace front_end { |
---|
16 | namespace decod_unit { |
---|
17 | namespace decod { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Decod::statistics_allocation" |
---|
22 | void Decod::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
23 | { |
---|
24 | log_printf(FUNC,Decod,FUNCTION,"Begin"); |
---|
25 | |
---|
26 | _stat = new Stat (static_cast<std::string>(_name), |
---|
27 | "Decod", |
---|
28 | param_statistics); |
---|
29 | |
---|
30 | _stat_sum_inst_decod = _stat->create_variable ("sum_inst_decod" // ,"", "Sum of decod instruction" |
---|
31 | ); |
---|
32 | |
---|
33 | |
---|
34 | _stat->create_expr_average_by_cycle ("average_sum_inst_decod","sum_inst_decod","","Average of decod instruction by cycle"); |
---|
35 | _stat->create_expr_percent ("percent_sum_inst_decod","average_sum_inst_decod", toString(_param->_nb_inst_decod), "Percent of decod instruction by cycle"); |
---|
36 | |
---|
37 | log_printf(FUNC,Decod,FUNCTION,"End"); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace decod |
---|
41 | }; // end namespace decod_unit |
---|
42 | }; // end namespace front_end |
---|
43 | }; // end namespace multi_front_end |
---|
44 | }; // end namespace core |
---|
45 | |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
48 | #endif |
---|