#ifdef STATISTICS
/*
 * $Id: Commit_unit_statistics_deallocation.cpp 98 2008-12-31 10:18:08Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/include/Commit_unit.h"

namespace morpheo {
namespace behavioural {
namespace core {
namespace multi_ooo_engine {
namespace ooo_engine {
namespace commit_unit {


#undef  FUNCTION
#define FUNCTION "Commit_unit::statistics_deallocation"
  void Commit_unit::statistics_deallocation (void)
  {
    log_begin(Commit_unit,FUNCTION);

    log_printf(INFO,Commit_unit,FUNCTION,_("<%s> : Generate Statistics file"),_name.c_str());

    delete _stat;

    delete [] _stat_nb_inst_insert;
    delete [] _stat_nb_inst_retire_ok;
    delete [] _stat_nb_inst_retire_ko;
    delete [] _stat_bank_nb_inst;
    
    log_end(Commit_unit,FUNCTION);
  };

}; // end namespace commit_unit
}; // end namespace ooo_engine
}; // end namespace multi_ooo_engine
}; // end namespace core

}; // end namespace behavioural
}; // end namespace morpheo              
#endif
