[78] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Update_Prediction_Table_statistics_deallocation.cpp 128 2009-06-26 08:43:23Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Update_Prediction_Table.h" |
---|
[97] | 10 | #include "Behavioural/include/Allocation.h" |
---|
[78] | 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace core { |
---|
| 15 | namespace multi_front_end { |
---|
| 16 | namespace front_end { |
---|
| 17 | namespace prediction_unit { |
---|
| 18 | namespace update_prediction_table { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Update_Prediction_Table::statistics_deallocation" |
---|
| 23 | void Update_Prediction_Table::statistics_deallocation (void) |
---|
| 24 | { |
---|
| 25 | log_printf(FUNC,Update_Prediction_Table,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | log_printf(INFO,Update_Prediction_Table,FUNCTION,"Generate Statistics file"); |
---|
| 28 | |
---|
[88] | 29 | delete _stat; |
---|
[97] | 30 | |
---|
[128] | 31 | DELETE2(_stat_nb_branch_hit ,_param->_nb_context,MAX_BRANCH_CONDITION); |
---|
| 32 | DELETE2(_stat_nb_branch_miss ,_param->_nb_context,MAX_BRANCH_CONDITION); |
---|
| 33 | DELETE1(_stat_nb_branch_unused ,_param->_nb_context); |
---|
| 34 | |
---|
| 35 | DELETE1(_stat_nb_branch_ifetch_prediction,_param->_nb_context); |
---|
| 36 | DELETE1(_stat_nb_branch_accurate ,_param->_nb_context); |
---|
| 37 | |
---|
| 38 | DELETE1(_stat_ufpt_queue_nb_elt ,_param->_nb_context); |
---|
| 39 | DELETE1(_stat_upt_queue_nb_elt ,_param->_nb_context); |
---|
[78] | 40 | |
---|
| 41 | log_printf(FUNC,Update_Prediction_Table,FUNCTION,"End"); |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | }; // end namespace update_prediction_table |
---|
| 45 | }; // end namespace prediction_unit |
---|
| 46 | }; // end namespace front_end |
---|
| 47 | }; // end namespace multi_front_end |
---|
| 48 | }; // end namespace core |
---|
| 49 | |
---|
| 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|
| 52 | #endif |
---|