#ifdef STATISTICS
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/include/Two_Level_Branch_Predictor.h"


namespace morpheo                    {
namespace behavioural {
namespace core {
namespace multi_front_end {
namespace front_end {
namespace prediction_unit {
namespace direction {

namespace meta_predictor {
namespace two_level_branch_predictor {


  string Two_Level_Branch_Predictor::statistics (uint32_t depth)
  {
    log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","Begin");

    string stat_component_Branch_History_Table  = (_param._have_bht==false)?"":component_Branch_History_Table  ->statistics(depth+1);
    string stat_component_Pattern_History_Table = (_param._have_pht==false)?"":component_Pattern_History_Table ->statistics(depth+1);

    string txt = _stat->print(depth,
			      stat_component_Branch_History_Table                            +
			      stat_component_Pattern_History_Table                           +
			      component_Two_Level_Branch_Predictor_Glue->statistics(depth+1)
			      );

    log_printf(FUNC,Two_Level_Branch_Predictor,"statistics","End");

    return txt;
  };

}; // end namespace two_level_branch_predictor
}; // end namespace meta_predictor

}; // end namespace core
}; // end namespace multi_front_end
}; // end namespace front_end
}; // end namespace prediction_unit
}; // end namespace direction


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