summaryrefslogtreecommitdiff
path: root/base/statistics.cc
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2003-11-04 18:19:03 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2003-11-04 18:19:03 -0500
commit16d0b2f85ac8527895df09235124798ad6518779 (patch)
tree97c9f8e28b3ccc1ac98bc29c008b381c11c36b58 /base/statistics.cc
parent553df008cfec3f4a0bd86c8e5730bde544c26e3d (diff)
downloadgem5-16d0b2f85ac8527895df09235124798ad6518779.tar.xz
Hack to enable perl totaling of standard deviation statistics.
statistics.hh: same statistics.cc: Hack to enable perl totaling. make FancyDisplay print a total parameter to enable totaling standard deviations for bins after a run is over with perl. currently a total hack. base/statistics.cc: Hack to enable perl totaling. make FancyDisplay print a total parameter to enable totaling standard deviations for bins after a run is over with perl. currently a total hack. base/statistics.hh: same --HG-- extra : convert_revision : c4087a138543e66acee4e395617ce7fd7e458a39
Diffstat (limited to 'base/statistics.cc')
-rw-r--r--base/statistics.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index fbb056498..e02c48f69 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -879,14 +879,18 @@ DistDisplay(ostream &stream, const string &name, const string &desc,
}
#endif
+/**
+ * @todo get rid of the ugly hack **Ignore for total
+ */
void
FancyDisplay(ostream &stream, const string &name, const string &desc,
int precision, FormatFlags flags, result_t mean,
- result_t variance)
+ result_t variance, result_t total)
{
result_t stdev = isnan(variance) ? NAN : sqrt(variance);
PrintOne(stream, mean, name + NAMESEP + "mean", desc, precision, flags);
PrintOne(stream, stdev, name + NAMESEP + "stdev", desc, precision, flags);
+ PrintOne(stream, total, "**Ignore: " + name + NAMESEP + "TOT", desc, precision, flags);
}
BinBase::BinBase()