[88] | 1 | #ifdef STATISTICS |
---|
| 2 | /* |
---|
| 3 | * $Id: OOO_Engine_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/OOO_Engine_Glue/include/OOO_Engine_Glue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_ooo_engine { |
---|
| 15 | namespace ooo_engine { |
---|
| 16 | namespace ooo_engine_glue { |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | #undef FUNCTION |
---|
| 20 | #define FUNCTION "OOO_Engine_Glue::statistics_allocation" |
---|
| 21 | void OOO_Engine_Glue::statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics) |
---|
| 22 | { |
---|
| 23 | log_begin(OOO_Engine_Glue,FUNCTION); |
---|
| 24 | |
---|
| 25 | _stat = new Stat (static_cast<std::string>(_name), |
---|
| 26 | "OOO_Engine_Glue", |
---|
| 27 | param_statistics); |
---|
[110] | 28 | |
---|
| 29 | _stat_nb_inst_issue_stall_by_registerfile = _stat->create_variable("nb_inst_issue_stall_by_registerfile"); |
---|
| 30 | // _stat_nb_inst_issue_stall_by_rename_unit = _stat->create_variable("nb_inst_issue_stall_by_rename_unit" ); |
---|
| 31 | _stat_nb_inst_issue_stall_by_commit_unit = _stat->create_variable("nb_inst_issue_stall_by_commit_unit" ); |
---|
| 32 | _stat_nb_inst_issue_stall_by_issue_queue = _stat->create_variable("nb_inst_issue_stall_by_issue_queue" ); |
---|
| 33 | |
---|
| 34 | // std::string nb_inst_issue_stall = "+ + nb_inst_issue_stall_by_registerfile nb_inst_issue_stall_by_rename_unit + nb_inst_issue_stall_by_commit_unit nb_inst_issue_stall_by_issue_queue"; |
---|
| 35 | std::string nb_inst_issue_stall = "+ nb_inst_issue_stall_by_registerfile + nb_inst_issue_stall_by_commit_unit nb_inst_issue_stall_by_issue_queue"; |
---|
| 36 | |
---|
| 37 | _stat->create_expr_percent ("percent_issue_stall_by_registerfile", "nb_inst_issue_stall_by_registerfile", nb_inst_issue_stall, _("Percent of instruction stalled by RegisterFile")); |
---|
| 38 | // _stat->create_expr_percent ("percent_issue_stall_by_rename_unit" , "nb_inst_issue_stall_by_rename_unit" , nb_inst_issue_stall, _("Percent of instruction stalled by Rename_Unit") ); |
---|
| 39 | _stat->create_expr_percent ("percent_issue_stall_by_commit_unit" , "nb_inst_issue_stall_by_commit_unit" , nb_inst_issue_stall, _("Percent of instruction stalled by Commit_Unit") ); |
---|
| 40 | _stat->create_expr_percent ("percent_issue_stall_by_issue_queue" , "nb_inst_issue_stall_by_issue_queue" , nb_inst_issue_stall, _("Percent of instruction stalled by Issue_Queue") ); |
---|
[88] | 41 | |
---|
| 42 | log_end(OOO_Engine_Glue,FUNCTION); |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace ooo_engine_glue |
---|
| 46 | }; // end namespace ooo_engine |
---|
| 47 | }; // end namespace multi_ooo_engine |
---|
| 48 | }; // end namespace core |
---|
| 49 | |
---|
| 50 | }; // end namespace behavioural |
---|
| 51 | }; // end namespace morpheo |
---|
| 52 | #endif |
---|