diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-07-22 21:31:35 -0400 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-07-22 21:31:35 -0400 |
commit | 552b9541808a76c8da570e918c14b1435570c6fb (patch) | |
tree | f32b2c90d8cbd4f1e832157304de6138fd09a92a /base/statistics.cc | |
parent | 2f973954ca9d55dd958571256b5b0d189d0eee5c (diff) | |
download | gem5-552b9541808a76c8da570e918c14b1435570c6fb.tar.xz |
more initial checking of stats
base/statistics.cc:
add more checking to the stats stuff to make sure that
things are set up correctly
base/stats/statdb.cc:
Check that bins are only registered once.
--HG--
extra : convert_revision : b0eafe4f584a8587dc3bf48812c632531ca28cb6
Diffstat (limited to 'base/statistics.cc')
-rw-r--r-- | base/statistics.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index 78012bff7..6e3dae1ef 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -273,7 +273,8 @@ check() for (i = Database::stats().begin(); i != end; ++i) { StatData *data = *i; assert(data); - data->check(); + if (!data->check() || !data->baseCheck()) + panic("stat check failed for %s\n", data->name); } int j = 0; |