diff options
author | Thomas Grass <Thomas.Grass@ARM.com> | 2011-08-19 15:08:05 -0500 |
---|---|---|
committer | Thomas Grass <Thomas.Grass@ARM.com> | 2011-08-19 15:08:05 -0500 |
commit | 3f1ae35c6db3321b5f7e0ef4a90e2610a468692b (patch) | |
tree | 0ff0c7143bf8331182f254930e7a944575acc0ca /src/base/stats/info.hh | |
parent | 676a530b776ca3468a4c318bbe5bbf8b473bc5f2 (diff) | |
download | gem5-3f1ae35c6db3321b5f7e0ef4a90e2610a468692b.tar.xz |
Stats: Add a sparse histogram stat object.
Diffstat (limited to 'src/base/stats/info.hh')
-rw-r--r-- | src/base/stats/info.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh index fa7c8cc3d..2c5b44a38 100644 --- a/src/base/stats/info.hh +++ b/src/base/stats/info.hh @@ -234,6 +234,20 @@ class FormulaInfo : public VectorInfo virtual std::string str() const = 0; }; +/** Data structure of sparse histogram */ +struct SparseHistData +{ + MCounter cmap; + Counter samples; +}; + + +class SparseHistInfo : public Info +{ + public: + /** Local storage for the entry values, used for printing. */ + SparseHistData data; +}; } // namespace Stats |