source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Statistics_print.cpp @ 48

Last change on this file since 48 was 48, checked in by rosiere, 17 years ago

Modification des Makefile : pas de creation inutile de shell

File size: 1.7 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/include/Statistics.h"
10
11#include <sstream>
12using namespace std;
13
14namespace morpheo {
15namespace behavioural {
16namespace core {
17namespace multi_front_end {
18namespace front_end {
19namespace prediction_unit {
20namespace direction {
21
22namespace meta_predictor {
23namespace two_level_branch_predictor {
24namespace two_level_branch_predictor_glue {
25
26
27  string Statistics::print (uint32_t depth)
28  {
29    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","Begin");
30
31    string        tab = string(depth,'\t');
32    ostringstream msg;
33
34    msg << tab << "<two_level_branch_predictor_glue name=\"" << _name << "\" >" << endl
35        << print_body(depth+1) << endl
36        << tab << "</two_level_branch_predictor_glue>" << endl;
37   
38    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","End");
39
40    return msg.str();
41  };
42
43  ostream& operator<< (ostream& output_stream ,
44                       morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Statistics & x)
45  {
46    output_stream << x.print(0);
47
48    return output_stream;
49  };
50
51}; // end namespace two_level_branch_predictor_glue
52}; // end namespace two_level_branch_predictor
53}; // end namespace meta_predictor
54
55}; // end namespace core
56}; // end namespace multi_front_end
57}; // end namespace front_end
58}; // end namespace prediction_unit
59}; // end namespace direction
60
61
62}; // end namespace behavioural
63}; // end namespace morpheo             
64#endif
Note: See TracBrowser for help on using the repository browser.