summaryrefslogtreecommitdiff
path: root/src/base/statistics.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-03-05 19:09:53 -0800
committerNathan Binkert <nate@binkert.org>2009-03-05 19:09:53 -0800
commit244c2a517a48a0985091397bed6a754cb2e2e1a5 (patch)
tree86f676861612f03dba0e401aff7478dc8adbb84f /src/base/statistics.hh
parente19fd1d521cd8444a52374392643ebf8be0b6c09 (diff)
downloadgem5-244c2a517a48a0985091397bed6a754cb2e2e1a5.tar.xz
stats: stick the distribution's fancy parameter into the parameters structure.
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r--src/base/statistics.hh23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index 9e641548c..6f2da2f3e 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -257,8 +257,6 @@ struct DistData
Counter sum;
Counter squares;
Counter samples;
-
- bool fancy;
};
class DistInfoBase : public Info
@@ -1419,8 +1417,9 @@ class DistStor
Counter bucket_size;
/** The number of buckets. Equal to (max-min)/bucket_size. */
size_type buckets;
+
+ enum { fancy = false };
};
- enum { fancy = false };
private:
/** The minimum value to track. */
@@ -1556,10 +1555,10 @@ class DistStor
class FancyStor
{
public:
- struct Params : public StorageParams {};
-
- public:
- enum { fancy = true };
+ struct Params : public StorageParams
+ {
+ enum { fancy = true };
+ };
private:
/** The current sum. */
@@ -1632,10 +1631,10 @@ class FancyStor
class AvgFancy
{
public:
- struct Params : public StorageParams {};
-
- public:
- enum { fancy = true };
+ struct Params : public StorageParams
+ {
+ enum { fancy = true };
+ };
private:
/** Current total. */
@@ -1765,7 +1764,6 @@ class DistBase : public InfoAccess
void
update(DistInfoBase *base)
{
- base->data.fancy = Storage::fancy;
data()->update(info(), base->data);
}
@@ -1881,7 +1879,6 @@ class VectorDistBase : public InfoAccess
size_type size = this->size();
base->data.resize(size);
for (off_type i = 0; i < size; ++i) {
- base->data[i].fancy = Storage::fancy;
data(i)->update(info(), base->data[i]);
}
}