projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a95d8e9
)
never print the cdf or pdf or the overflow bucket if we're simplescalr
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 24 Dec 2003 05:22:02 +0000
(
00:22
-0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 24 Dec 2003 05:22:02 +0000
(
00:22
-0500)
--HG--
extra : convert_revision :
921ad80a5c671fee9eab3f389636dccc101d18f6
base/statistics.cc
patch
|
blob
|
history
diff --git
a/base/statistics.cc
b/base/statistics.cc
index 20b94e297f60476213c8e508b2829cc28e080b3b..9f528e7125280a0734cc218ffe2daa06f6368f2f 100644
(file)
--- 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);
}