diff options
author | Nathan Binkert <nate@binkert.org> | 2011-05-12 11:19:35 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2011-05-12 11:19:35 -0700 |
commit | 1177e7a3c861d77360074e97661952d427cd8640 (patch) | |
tree | fc15f17092933cb9591cfadb1da2728d40e776d1 /src/base/statistics.hh | |
parent | 35b0c1d3910595875de67a34f6b993047470fd55 (diff) | |
download | gem5-1177e7a3c861d77360074e97661952d427cd8640.tar.xz |
stats: move code that loops over all stats into python
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r-- | src/base/statistics.hh | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh index f139bce61..cf8349d24 100644 --- a/src/base/statistics.hh +++ b/src/base/statistics.hh @@ -60,8 +60,8 @@ #include <vector> #include "base/stats/info.hh" +#include "base/stats/output.hh" #include "base/stats/types.hh" -#include "base/stats/visit.hh" #include "base/cast.hh" #include "base/cprintf.hh" #include "base/intmath.hh" @@ -90,7 +90,7 @@ class InfoProxy : public Base void prepare() { s.prepare(); } void reset() { s.reset(); } void - visit(Visit &visitor) + visit(Output &visitor) { visitor.visit(*static_cast<Base *>(this)); } @@ -738,7 +738,7 @@ class ProxyInfo : public ScalarInfo void reset() { } bool zero() const { return value() == 0; } - void visit(Visit &visitor) { visitor.visit(*this); } + void visit(Output &visitor) { visitor.visit(*this); } }; template <class T> @@ -2933,28 +2933,10 @@ sum(Temp val) return NodePtr(new SumNode<std::plus<Result> >(val)); } -/** - * Enable the statistics package. Before the statistics package is - * enabled, all statistics must be created and initialized and once - * the package is enabled, no more statistics can be created. - */ -void enable(); - -/** - * Prepare all stats for data access. This must be done before - * dumping and serialization. - */ -void prepare(); - -/** - * Dump all statistics data to the registered outputs - */ +/** Dump all statistics data to the registered outputs */ void dump(); - -/** - * Reset all statistics to the base state - */ void reset(); + /** * Register a callback that should be called whenever statistics are * reset |