diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-02-22 16:03:30 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-02-22 16:03:30 -0500 |
commit | e8a564b0fdd8c5b6ae8f73613e3ad25005556ec5 (patch) | |
tree | fe9cd45b453f15fb3d903572edc754489be04016 /base | |
parent | 79e83cea971bf346a5b0d6e88541e502a614c777 (diff) | |
parent | 884a8de50955422f3691496c19bf582c0f8f5e32 (diff) | |
download | gem5-e8a564b0fdd8c5b6ae8f73613e3ad25005556ec5.tar.xz |
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5
--HG--
extra : convert_revision : 8a558785c64b7c33e64523d3d887ea6e760c3d2b
Diffstat (limited to 'base')
-rw-r--r-- | base/statistics.cc | 7 | ||||
-rw-r--r-- | base/statistics.hh | 2 | ||||
-rw-r--r-- | base/stats/text.cc | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index 6e3dae1ef..6f5caf1fe 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -286,6 +286,13 @@ check() Database::stats().sort(StatData::less); +#if defined(STATS_BINNING) + if (MainBin::curBin() == NULL) { + static MainBin mainBin("main bin"); + mainBin.activate(); + } +#endif + if (i == end) return; diff --git a/base/statistics.hh b/base/statistics.hh index 9ec26eb4d..667a0ed48 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2184,7 +2184,7 @@ class SumNode : public Node * binned. If the typedef is NoBin, nothing is binned. If it is * MainBin, then all stats are binned under that Bin. */ -#if defined(FS_MEASURE) || defined(STATS_BINNING) +#if defined(STATS_BINNING) typedef MainBin DefaultBin; #else typedef NoBin DefaultBin; diff --git a/base/stats/text.cc b/base/stats/text.cc index f7e82a30f..8cc5ff65e 100644 --- a/base/stats/text.cc +++ b/base/stats/text.cc @@ -126,7 +126,7 @@ Text::output() using namespace Database; ccprintf(*stream, "\n---------- Begin Simulation Statistics ----------\n"); - if (bins().empty()) { + if (bins().empty() || bins().size() == 1) { stat_list_t::const_iterator i, end = stats().end(); for (i = stats().begin(); i != end; ++i) (*i)->visit(*this); |