summaryrefslogtreecommitdiff
path: root/base/statistics.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-02-25 16:12:48 -0500
committerNathan Binkert <binkertn@umich.edu>2004-02-25 16:12:48 -0500
commitb678152277d5f876efcf7bcac99926a977fdccac (patch)
treeb6a10b28c86f1604b4aa16a3ee283f529f93f6d5 /base/statistics.hh
parent6d574e9cff50e7c6bacd6f3d16e84810c88a2647 (diff)
downloadgem5-b678152277d5f876efcf7bcac99926a977fdccac.tar.xz
Fix stats debugging and always compile it in for the
debug target --HG-- extra : convert_revision : aa16e6256a056e6df9affec6fd973e62e812e23c
Diffstat (limited to 'base/statistics.hh')
-rw-r--r--base/statistics.hh15
1 files changed, 5 insertions, 10 deletions
diff --git a/base/statistics.hh b/base/statistics.hh
index d8b78fbff..71d2aa8c8 100644
--- a/base/statistics.hh
+++ b/base/statistics.hh
@@ -60,12 +60,6 @@
#include "base/str.hh"
#include "sim/host.hh"
-//
-// Un-comment this to enable weirdo-stat debugging
-//
-// #define STAT_DEBUG
-
-
#ifndef NAN
float __nan();
/** Define Not a number. */
@@ -146,10 +140,7 @@ struct StatData
/** A pointer to a prerequisite Stat. */
const StatData *prereq;
- StatData()
- : flags(none), precision(-1), prereq(0)
- {}
-
+ StatData();
virtual ~StatData();
/**
@@ -193,6 +184,10 @@ struct StatData
* @return stat1's name is alphabetically before stat2's
*/
static bool less(StatData *stat1, StatData *stat2);
+
+#ifdef DEBUG
+ int number;
+#endif
};
struct ScalarDataBase : public StatData