Yara Gowayed has uploaded this change for review. (
https://gem5-review.googlesource.com/10855
Change subject: Updated the stats_map creation in the power model file to
be able to access the stats externally
......................................................................
Updated the stats_map creation in the power model file to be able to access
the stats externally
Change-Id: I562a511717b6afe6bd2d74b7e603825d0928351b
---
M src/sim/power/mathexpr_powermodel.cc
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/sim/power/mathexpr_powermodel.cc
b/src/sim/power/mathexpr_powermodel.cc
index ab48720..e8661cc 100644
--- a/src/sim/power/mathexpr_powermodel.cc
+++ b/src/sim/power/mathexpr_powermodel.cc
@@ -65,13 +65,13 @@
// Create a map with stats and pointers for quick access
// Has to be done here, since we need access to the statsList
for (auto & i: Stats::statsList()) {
- if (i->name.find(basename) == 0) {
+// if (i->name.find(basename) == 0) {
// Add stats for this sim object and its child objects
- stats_map[i->name.substr(basename.size())] = i;
- } else if (i->name.find(".") == std::string::npos) {
+// stats_map[i->name.substr(basename.size())] = i;
+// } else if (i->name.find(".") == std::string::npos) {
// Add global stats (sim_seconds, for example)
stats_map[i->name] = i;
- }
+// }
}
tryEval(st_expr);
--
To view, visit https://gem5-review.googlesource.com/10855
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I562a511717b6afe6bd2d74b7e603825d0928351b
Gerrit-Change-Number: 10855
Gerrit-PatchSet: 1
Gerrit-Owner: Yara Gowayed <yara.gowa...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev