From: Lisa Hsu Date: Tue, 4 Nov 2003 20:20:58 +0000 (-0500) Subject: statistics.cc: X-Git-Tag: m5_1.0_beta2~297^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8834d91f21562d01444421cc3eccca641bf100d0;p=gem5.git statistics.cc: on Database::reset(), reset all stats in every bin, not just current one. base/statistics.cc: on Database::reset(), reset all stats in every bin, not just current one. --HG-- extra : convert_revision : 0f3443b36ee00952810818a035c99267da8871d9 --- diff --git a/base/statistics.cc b/base/statistics.cc index c1a5b2626..14bdb32f6 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -250,12 +250,19 @@ Database::check() void Database::reset() { + list::iterator bi = bins.begin(); + list::iterator be = bins.end(); list_t::iterator i = allStats.begin(); list_t::iterator end = allStats.end(); - while (i != end) { + while (bi != be) { + (*bi)->activate(); + + while (i != end) { (*i)->reset(); ++i; + } + ++bi; } }