cpu: Remove units from stats description
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 5 Feb 2021 07:32:55 +0000 (23:32 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 10 Feb 2021 09:03:09 +0000 (09:03 +0000)
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 <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40735
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabe.black@gmail.com>

src/cpu/testers/traffic_gen/base.cc

index 46c158b6556d233a2855c1cf200a6f0e6d1f1769..320de92e2516cf9a3d4af7827477a175e80f0b5b 100644 (file)
@@ -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)
 {
 }