From: Hoa Nguyen Date: Fri, 5 Feb 2021 07:32:55 +0000 (-0800) Subject: cpu: Remove units from stats description X-Git-Tag: develop-gem5-snapshot~106 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0367539e9f1c75478749404d4604b8f5f71f6139;p=gem5.git cpu: Remove units from stats description A recent change https://gem5-review.googlesource.com/c/public/gem5/+/40622 allows units to be shown in stats dump; the units in stats descriptions are nolonger necessary. This change removes units from stats descriptions. However, for units that are multiples of a supported unit (e.g. MegaBytes), the units Change-Id: Ib63ea44e757f755f761b20b40e045bc37c90baff Signed-off-by: Hoa Nguyen Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40735 Tested-by: kokoro Reviewed-by: Daniel Carvalho Maintainer: Gabe Black --- diff --git a/src/cpu/testers/traffic_gen/base.cc b/src/cpu/testers/traffic_gen/base.cc index 46c158b65..320de92e2 100644 --- a/src/cpu/testers/traffic_gen/base.cc +++ b/src/cpu/testers/traffic_gen/base.cc @@ -353,9 +353,9 @@ BaseTrafficGen::StatGroup::StatGroup(Stats::Group *parent) "Avg latency of write requests", totalWriteLatency / totalWrites), ADD_STAT(readBW, UNIT_RATE(Stats::Units::Byte, Stats::Units::Second), - "Read bandwidth in bytes/s", bytesRead / simSeconds), + "Read bandwidth", bytesRead / simSeconds), ADD_STAT(writeBW, UNIT_RATE(Stats::Units::Byte, Stats::Units::Second), - "Write bandwidth in bytes/s", bytesWritten / simSeconds) + "Write bandwidth", bytesWritten / simSeconds) { }