summaryrefslogtreecommitdiff
path: root/base/statistics.cc
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2003-11-04 15:15:24 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2003-11-04 15:15:24 -0500
commit553df008cfec3f4a0bd86c8e5730bde544c26e3d (patch)
tree097b7d4c265beaba027ff490b04d63347a42c336 /base/statistics.cc
parenta7635fa6ef488b8e44b127c40ab2a6818620145e (diff)
parent921b1ee87b6927e7310c747e03efd223d8c65642 (diff)
downloadgem5-553df008cfec3f4a0bd86c8e5730bde544c26e3d.tar.xz
Merge zizzer:/bk/m5 into zower.eecs.umich.edu:/z/hsul/bk/clean
--HG-- extra : convert_revision : 0074df284e85bc2ebe6ccc2dbe765fabda9ab041
Diffstat (limited to 'base/statistics.cc')
-rw-r--r--base/statistics.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index c1a5b2626..fbb056498 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -161,6 +161,7 @@ void
Database::dump(ostream &stream)
{
+#ifndef FS_MEASURE
list_t::iterator i = printStats.begin();
list_t::iterator end = printStats.end();
while (i != end) {
@@ -169,6 +170,7 @@ Database::dump(ostream &stream)
binnedStats.push_back(stat);
++i;
}
+#endif //FS_MEASURE
list<GenBin *>::iterator j = bins.begin();
list<GenBin *>::iterator bins_end=bins.end();
@@ -183,8 +185,13 @@ Database::dump(ostream &stream)
panic("a binned stat not found in names map!");
ccprintf(stream,"---%s Bin------------\n", (*iter).second);
+#ifdef FS_MEASURE
+ list_t::iterator i = printStats.begin();
+ list_t::iterator end = printStats.end();
+#else
list_t::iterator i = binnedStats.begin();
list_t::iterator end = binnedStats.end();
+#endif
while (i != end) {
Stat *stat = *i;
if (stat->dodisplay())
@@ -194,9 +201,16 @@ Database::dump(ostream &stream)
++j;
ccprintf(stream, "---------------------------------\n");
}
+#ifndef FS_MEASURE
ccprintf(stream, "**************ALL STATS************\n");
+#endif
}
+/**
+ * get bin totals working, then print the stat here (as total), even if
+ * its' binned. (this is only for the case you selectively bin a few stats
+ */
+#ifndef FS_MEASURE
list_t::iterator k = printStats.begin();
list_t::iterator endprint = printStats.end();
while (k != endprint) {
@@ -205,6 +219,7 @@ Database::dump(ostream &stream)
stat->display(stream);
++k;
}
+#endif
}
StatData *