source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Stage_1_Ifetch/Predictor/Meta_Predictor/Two_Level_Branch_Predictor/Two_Level_Branch_Predictor_Glue/src/Statistics_print.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 1.4 KB
Line 
1#ifdef STATISTICS
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Stage_1_Ifetch/Predictor/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 stage_1_ifetch {
17namespace predictor {
18namespace meta_predictor {
19namespace two_level_branch_predictor {
20namespace two_level_branch_predictor_glue {
21
22
23  string Statistics::print (uint32_t depth)
24  {
25    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","Begin");
26
27    string        tab = string(depth,'\t');
28    ostringstream msg;
29
30    msg << tab << "<two_level_branch_predictor_glue name=\"" << _name << "\" >" << endl
31        << print_body(depth+1) << endl
32        << tab << "</two_level_branch_predictor_glue>" << endl;
33   
34    log_printf(FUNC,Two_Level_Branch_Predictor_Glue,"print","End");
35
36    return msg.str();
37  };
38
39  ostream& operator<< (ostream& output_stream ,
40                       morpheo::behavioural::stage_1_ifetch::predictor::meta_predictor::two_level_branch_predictor::two_level_branch_predictor_glue::Statistics & x)
41  {
42    output_stream << x.print(0);
43
44    return output_stream;
45  };
46
47}; // end namespace two_level_branch_predictor_glue
48}; // end namespace two_level_branch_predictor
49}; // end namespace meta_predictor
50}; // end namespace predictor
51}; // end namespace stage_1_ifetch
52
53}; // end namespace behavioural
54}; // end namespace morpheo             
55#endif
Note: See TracBrowser for help on using the repository browser.