diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-09-24 18:44:13 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-09-26 10:03:22 +0000 |
commit | 19017495eadba9dc05b0810cd66a4b90aa0743e0 (patch) | |
tree | 34d9549f38d3d7e5183421818bcd4bdaa0b4a404 | |
parent | aff2cad4bed219a6827c26fd632c8cb3904752e6 (diff) | |
download | gem5-19017495eadba9dc05b0810cd66a4b90aa0743e0.tar.xz |
stats: Correctly print new-style dist stat names
The text stat printer didn't output fully qualified names for
new-style dist stats. Fix that.
Change-Id: I61bc7403fbd760bbbb0641e8e593781e6d03a4ed
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21162
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
-rw-r--r-- | src/base/stats/text.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc index da68188bd..17c619ac6 100644 --- a/src/base/stats/text.cc +++ b/src/base/stats/text.cc @@ -396,8 +396,9 @@ DistPrint::DistPrint(const Text *text, const VectorDistInfo &info, int i) { init(text, info); - name = info.name + "_" + - (info.subnames[i].empty() ? (std::to_string(i)) : info.subnames[i]); + name = text->statName( + info.name + "_" + + (info.subnames[i].empty() ? (std::to_string(i)) : info.subnames[i])); if (!info.subdescs[i].empty()) desc = info.subdescs[i]; |