1 | #ifdef STATISTICS |
---|
2 | /* |
---|
3 | * $Id: Context_State_statistics_deallocation.cpp 120 2009-05-26 19:01:47Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Context_State/include/Context_State.h" |
---|
10 | #include "Behavioural/include/Allocation.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace core { |
---|
15 | namespace multi_front_end { |
---|
16 | namespace front_end { |
---|
17 | namespace context_state { |
---|
18 | |
---|
19 | |
---|
20 | #undef FUNCTION |
---|
21 | #define FUNCTION "Context_State::statistics_deallocation" |
---|
22 | void Context_State::statistics_deallocation (void) |
---|
23 | { |
---|
24 | log_begin(Context_State,FUNCTION); |
---|
25 | |
---|
26 | log_printf(INFO,Context_State,FUNCTION,_("Generate Statistics file")); |
---|
27 | |
---|
28 | delete _stat; |
---|
29 | |
---|
30 | DELETE1(_stat_nb_cycle_state_ok ,_param->_nb_context); |
---|
31 | DELETE1(_stat_nb_cycle_state_ko_excep ,_param->_nb_context); |
---|
32 | DELETE1(_stat_nb_cycle_state_ko_miss_branch ,_param->_nb_context); |
---|
33 | DELETE1(_stat_nb_cycle_state_ko_miss_load ,_param->_nb_context); |
---|
34 | DELETE1(_stat_nb_cycle_state_ko_miss_load_and_branch,_param->_nb_context); |
---|
35 | DELETE1(_stat_nb_cycle_state_ko_msync ,_param->_nb_context); |
---|
36 | DELETE1(_stat_nb_cycle_state_ko_psync ,_param->_nb_context); |
---|
37 | DELETE1(_stat_nb_cycle_state_ko_csync ,_param->_nb_context); |
---|
38 | DELETE1(_stat_nb_cycle_state_ko_spr ,_param->_nb_context); |
---|
39 | |
---|
40 | log_end(Context_State,FUNCTION); |
---|
41 | }; |
---|
42 | |
---|
43 | }; // end namespace context_state |
---|
44 | }; // end namespace front_end |
---|
45 | }; // end namespace multi_front_end |
---|
46 | }; // end namespace core |
---|
47 | |
---|
48 | }; // end namespace behavioural |
---|
49 | }; // end namespace morpheo |
---|
50 | #endif |
---|