summaryrefslogtreecommitdiff
path: root/src/base/statistics.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-02-23 12:22:17 -0800
committerNathan Binkert <nate@binkert.org>2009-02-23 12:22:17 -0800
commit80d5f34da6788d63e2be6458a5d2a548b459d0d0 (patch)
treeaa4b1d33e21d4ae11a16a4b0e9b98ee7bc60eb9e /src/base/statistics.hh
parentfb74987c522a141b2f61d303377453cbbfae0788 (diff)
downloadgem5-80d5f34da6788d63e2be6458a5d2a548b459d0d0.tar.xz
stats: get rid of the convoluted 'database' code.
Just use the stuff directly and things ought to be more clear
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r--src/base/statistics.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 0bc770899..5d894e8e1 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -56,6 +56,7 @@
#include <functional>
#include <iosfwd>
#include <limits>
+#include <list>
#include <string>
#include <vector>
@@ -382,7 +383,6 @@ class Vector2dInfo : public Vector2dInfoBase
class InfoAccess
{
protected:
- Info *find() const;
/** Set up an info class for this statistic */
void setInfo(Info *info);
/** Save Storage class parameters if any */
@@ -1339,7 +1339,7 @@ class Vector2dBase : public InfoAccess
assert(_x > 0 && _y > 0 && "sizes must be positive!");
assert(!storage && "already initialized");
- Vector2dInfoBase *info = dynamic_cast<Vector2dInfoBase *>(find());
+ Vector2dInfoBase *info = safe_cast<Vector2dInfoBase *>(this->info());
x = _x;
y = _y;
@@ -3084,6 +3084,8 @@ sum(Temp val)
return NodePtr(new SumNode<std::plus<Result> >(val));
}
+std::list<Info *> &statsList();
+
/* namespace Stats */ }
#endif // __BASE_STATISTICS_HH__