diff options
author | Nathan Binkert <nate@binkert.org> | 2010-07-21 18:54:53 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-07-21 18:54:53 -0700 |
commit | 21bf6ff1019cb1334596da8488268eeaea3753cc (patch) | |
tree | cbcfd55b702e7e235aad41031c6840e2c3c571b1 /src/base/stats/info.hh | |
parent | 2a1309f2134986edcbff846aff5951ec1e8df6e1 (diff) | |
download | gem5-21bf6ff1019cb1334596da8488268eeaea3753cc.tar.xz |
stats: unify the two stats distribution type better
Diffstat (limited to 'src/base/stats/info.hh')
-rw-r--r-- | src/base/stats/info.hh | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh index 4987fa810..e5b9e4a65 100644 --- a/src/base/stats/info.hh +++ b/src/base/stats/info.hh @@ -61,11 +61,7 @@ const FlagsType nonan = 0x0200; /** Mask of flags that can't be set directly */ const FlagsType __reserved = init | display; -struct StorageParams -{ - virtual ~StorageParams(); -}; - +struct StorageParams; struct Visit; class Info @@ -168,8 +164,15 @@ class VectorInfo : public Info virtual Result total() const = 0; }; +enum DistType { Deviation, Dist }; + struct DistData { + DistType type; + Counter min; + Counter max; + Counter bucket_size; + Counter min_val; Counter max_val; Counter underflow; @@ -180,24 +183,6 @@ struct DistData Counter samples; }; -enum DistType { Deviation, Dist }; - -struct DistParams : public StorageParams -{ - const DistType type; - - /** The minimum value to track. */ - Counter min; - /** The maximum value to track. */ - Counter max; - /** The number of entries in each bucket. */ - Counter bucket_size; - /** The number of buckets. Equal to (max-min)/bucket_size. */ - size_type buckets; - - explicit DistParams(DistType t) : type(t) {} -}; - class DistInfo : public Info { public: |