diff options
author | Nathan Binkert <nate@binkert.org> | 2009-03-05 19:09:53 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-03-05 19:09:53 -0800 |
commit | 6f787e3d368eb248aee0854d99ed55e332d80170 (patch) | |
tree | 22a153b41f7cd998ef3fcccb8a766eed7d1e92ab /src/base/stats | |
parent | 9f45fbaaa6e5f0fc63c63162b756c44b33e367f5 (diff) | |
download | gem5-6f787e3d368eb248aee0854d99ed55e332d80170.tar.xz |
stats: create an enable phase, and a prepare phase.
Enable more or less takes the place of check, but also allows stats to
do some other configuration. Prepare moves all of the code that readies
a stat for dumping into a separate function in preparation for supporting
serialization of certain pieces of statistics data.
While we're at it, clean up the visitor code and some of the python code.
Diffstat (limited to 'src/base/stats')
-rw-r--r-- | src/base/stats/output.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base/stats/output.cc b/src/base/stats/output.cc index 9f2b91c77..31aa21c45 100644 --- a/src/base/stats/output.cc +++ b/src/base/stats/output.cc @@ -30,6 +30,7 @@ #include <list> +#include "base/statistics.hh" #include "base/stats/output.hh" #include "sim/eventq.hh" #include "sim/host.hh" @@ -49,6 +50,8 @@ dump() return; lastDump = curTick; + prepare(); + list<Output *>::iterator i = OutputList.begin(); list<Output *>::iterator end = OutputList.end(); for (; i != end; ++i) { |