#ifdef STATISTICS
/*
 * $Id: Decod_unit_statistics_allocation.cpp 83 2008-05-09 18:00:21Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/include/Decod_unit.h"

namespace morpheo {
namespace behavioural {
namespace core {
namespace multi_front_end {
namespace front_end {
namespace decod_unit {


#undef  FUNCTION
#define FUNCTION "Decod_unit::statistics_allocation"
  void Decod_unit::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics)
  {
    log_begin(Decod_unit,FUNCTION);

    _stat = new Stat (static_cast<std::string>(_name),
		      "Decod_unit",
		      param_statistics);

    _stat->add_stat(_component_decod      ->_stat);
    _stat->add_stat(_component_decod_queue->_stat);
    
    log_end(Decod_unit,FUNCTION);
  };

}; // end namespace decod_unit
}; // end namespace front_end
}; // end namespace multi_front_end
}; // end namespace core

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