From 0367539e9f1c75478749404d4604b8f5f71f6139 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Thu, 4 Feb 2021 23:32:55 -0800 Subject: [PATCH] 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 --- src/cpu/testers/traffic_gen/base.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { } -- 2.30.2