diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-12-24 00:22:02 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-12-24 00:22:02 -0500 |
commit | 9908987f1578681d11e1d0e7ea1224faa52fb039 (patch) | |
tree | 29abf2b45c484f1d27010804f083ece054844fa7 | |
parent | a95d8e95cb784d6f46b35b823315970d3b42478a (diff) | |
download | gem5-9908987f1578681d11e1d0e7ea1224faa52fb039.tar.xz |
never print the cdf or pdf or the overflow bucket if we're simplescalr
--HG--
extra : convert_revision : 921ad80a5c671fee9eab3f389636dccc101d18f6
-rw-r--r-- | base/statistics.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/base/statistics.cc b/base/statistics.cc index 20b94e297..9f528e712 100644 --- a/base/statistics.cc +++ b/base/statistics.cc @@ -678,18 +678,17 @@ DistPrint::operator()(ostream &stream) const } print.flags = flags; - if (flags & (pdf || cdf)) { - print.pdf = NAN; - print.cdf = NAN; - } } if (mode == mode_m5 || overflow > 0.0) { print.name = base + "overflows"; print.value = overflow; - if (total) { + if (mode == mode_m5 && total) { print.pdf = overflow / total; print.cdf += print.pdf; + } else { + print.pdf = NAN; + print.cdf = NAN; } print(stream); } |