source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Context_State/src/Context_State_statistics_deallocation.cpp @ 120

Last change on this file since 120 was 120, checked in by rosiere, 15 years ago

1) Context_state : Add statistics
2) Add configuration with multi front_end
3) Add optionnal pid at log filename

  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
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
12namespace morpheo {
13namespace behavioural {
14namespace core {
15namespace multi_front_end {
16namespace front_end {
17namespace 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
Note: See TracBrowser for help on using the repository browser.