Changeset 137 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_statistics_allocation.cpp
- Timestamp:
- Feb 16, 2010, 1:35:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/src/Commit_unit_statistics_allocation.cpp
r124 r137 52 52 _stat_nb_inst_retire_ok = new counter_t * [_param->_nb_thread]; 53 53 _stat_nb_inst_retire_ko = new counter_t * [_param->_nb_thread]; 54 _stat_nb_inst_instruction = new counter_t * [NB_INSTRUCTION]; 54 55 _stat_nb_inst_type = new counter_t * [_param->_nb_type]; 55 56 _stat_bank_nb_inst = new counter_t * [_param->_nb_bank]; 56 57 57 58 { 58 59 std::string sum_nb_inst_insert = "0"; … … 129 130 130 131 for (uint32_t i=0; i<_param->_nb_type; i++) 131 132 if (is_type_valid(i)) 132 133 { 133 134 _stat_nb_inst_type [i] = _stat->create_variable("nb_inst_type_"+toString(i)); … … 139 140 if (is_type_valid(i)) 140 141 { 141 std::string name = toString(static_cast<type_t>(i)).c_str(); 142 // _stat->create_expr_average_by_cycle("average_inst_type_"+toString(name), "nb_inst_type_"+toString(i), "", toString(_("Average instruction retire ok by cycle (type %s)"),name.c_str())); 143 _stat->create_expr_percent ("percent_inst_type_"+toString(name), "nb_inst_type_"+toString(i), sum_nb_inst_type, toString(_("Percent instruction retire ok by cycle (type %s)"),name.c_str())); 144 } 142 std::string name = toString(static_cast<type_t>(i)); 143 144 _stat->create_expr_percent ("percent_type_"+toString(name), "nb_inst_type_"+toString(i), sum_nb_inst_type, toString(_("Percent instruction retire ok by cycle (type %s)"),name.c_str())); 145 } 146 } 147 148 { 149 std::string sum_nb_inst_instruction = "0"; 150 151 for (uint32_t i=0; i<NB_INSTRUCTION; i++) 152 { 153 _stat_nb_inst_instruction [i] = _stat->create_variable("nb_inst_instruction_"+toString(i)); 154 155 sum_nb_inst_instruction = "+ nb_inst_instruction_"+toString(i) + " " +sum_nb_inst_instruction; 156 } 157 158 for (uint32_t i=0; i<NB_INSTRUCTION; i++) 159 { 160 std::string name = toString_instruction(i).c_str(); 161 162 _stat->create_expr_percent ("percent_instruction_"+toString(name), "nb_inst_instruction_"+toString(i), sum_nb_inst_instruction, toString(_("Percent instruction retire ok by cycle (instruction %s)"),name.c_str())); 163 } 145 164 } 146 165
Note: See TracChangeset
for help on using the changeset viewer.