[78] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: Register_translation_unit_Glue_statistics_allocation.cpp 110 2009-02-19 16:31:47Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Register_translation_unit_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace rename_unit { |
---|
| 17 | namespace register_translation_unit { |
---|
| 18 | namespace register_translation_unit_glue { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
[110] | 22 | #define FUNCTION "Register_translation_unit_Glue::statistics_allocation" |
---|
| 23 | void Register_translation_unit_Glue::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
[78] | 24 | { |
---|
| 25 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"Begin"); |
---|
| 26 | |
---|
| 27 | _stat = new Stat (static_cast<std::string>(_name), |
---|
| 28 | "Register_translation_unit_Glue", |
---|
| 29 | param_statistics); |
---|
[110] | 30 | |
---|
| 31 | _stat_nb_inst_issue_rename_select = _stat->create_variable("nb_inst_issue_rename_select"); |
---|
| 32 | _stat_nb_inst_issue_rename_select_req = _stat->create_variable("nb_inst_issue_rename_select_req"); |
---|
| 33 | |
---|
| 34 | _stat_nb_inst_issue_stall_by_commit = _stat->create_variable("nb_inst_issue_stall_by_commit"); |
---|
| 35 | _stat_nb_inst_issue_stall_by_rat_rename = _stat->create_variable("nb_inst_issue_stall_by_rat_rename"); |
---|
| 36 | _stat_nb_inst_issue_stall_by_rat_insert = _stat->create_variable("nb_inst_issue_stall_by_rat_insert"); |
---|
| 37 | _stat_nb_inst_issue_stall_by_free_list = _stat->create_variable("nb_inst_issue_stall_by_free_list"); |
---|
| 38 | _stat_nb_inst_issue_stall_by_stat_list = _stat->create_variable("nb_inst_issue_stall_by_stat_list"); |
---|
| 39 | |
---|
| 40 | // std::string nb_inst_issue_stall = "+ + + nb_inst_issue_stall_by_commit nb_inst_issue_stall_by_rat_rename + nb_inst_issue_stall_by_rat_insert nb_inst_issue_stall_by_free_list + nb_inst_issue_stall_by_stat_list nb_inst_issue_stall_by_rename_select"; |
---|
| 41 | std::string nb_inst_issue_stall = "+ + + nb_inst_issue_stall_by_commit nb_inst_issue_stall_by_rat_rename + nb_inst_issue_stall_by_rat_insert nb_inst_issue_stall_by_free_list nb_inst_issue_stall_by_stat_list"; |
---|
| 42 | |
---|
| 43 | _stat->create_expr_average_by_cycle("average_req_interface_insert", "nb_inst_issue_rename_select_req", "", _("Average instruction by cycle on issue interface (request)")); |
---|
| 44 | _stat->create_expr_average_by_cycle("average_use_interface_insert", "nb_inst_issue_rename_select" , "", _("Average instruction by cycle on issue interface")); |
---|
| 45 | |
---|
| 46 | // _stat->create_expr_percent ("percent_issue_stall_by_rename_select", "nb_inst_issue_stall_by_rename_select", nb_inst_issue_stall, _("Percent of instruction stalled by Rename_Select")); |
---|
| 47 | _stat->create_expr_percent ("percent_issue_stall_by_commit" , "nb_inst_issue_stall_by_commit", nb_inst_issue_stall, _("Percent of instruction stalled by Commit_unit or Issue_queue or RegisterFile")); |
---|
| 48 | _stat->create_expr_percent ("percent_issue_stall_by_rat_rename" , "nb_inst_issue_stall_by_rat_rename", nb_inst_issue_stall, _("Percent of instruction stalled by Rat_Rename")); |
---|
| 49 | _stat->create_expr_percent ("percent_issue_stall_by_rat_insert" , "nb_inst_issue_stall_by_rat_insert", nb_inst_issue_stall, _("Percent of instruction stalled by Rat_Insert")); |
---|
| 50 | _stat->create_expr_percent ("percent_issue_stall_by_free_list" , "nb_inst_issue_stall_by_free_list", nb_inst_issue_stall, _("Percent of instruction stalled by Free_List")); |
---|
| 51 | _stat->create_expr_percent ("percent_issue_stall_by_stat_list" , "nb_inst_issue_stall_by_stat_list", nb_inst_issue_stall, _("Percent of instruction stalled by Stat_List")); |
---|
[78] | 52 | |
---|
| 53 | log_printf(FUNC,Register_translation_unit_Glue,FUNCTION,"End"); |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | }; // end namespace register_translation_unit_glue |
---|
| 57 | }; // end namespace register_translation_unit |
---|
| 58 | }; // end namespace rename_unit |
---|
| 59 | }; // end namespace ooo_engine |
---|
| 60 | }; // end namespace multi_ooo_engine |
---|
| 61 | }; // end namespace core |
---|
| 62 | |
---|
| 63 | }; // end namespace behavioural |
---|
| 64 | }; // end namespace morpheo |
---|
| 65 | #endif |
---|