base-stats: Rename Units namespace as units
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. Stats::Units became Stats::units. Change-Id: I9ce855b291db122d952098a090a2984b42152850 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45415 Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
This commit is contained in:
committed by
Daniel Carvalho
parent
7592230550
commit
3016478068
@@ -191,9 +191,9 @@ MemTest::completeRequest(PacketPtr pkt, bool functional)
|
||||
}
|
||||
MemTest::MemTestStats::MemTestStats(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(numReads, Stats::Units::Count::get(),
|
||||
ADD_STAT(numReads, Stats::units::Count::get(),
|
||||
"number of read accesses completed"),
|
||||
ADD_STAT(numWrites, Stats::Units::Count::get(),
|
||||
ADD_STAT(numWrites, Stats::units::Count::get(),
|
||||
"number of write accesses completed")
|
||||
{
|
||||
|
||||
|
||||
@@ -332,34 +332,34 @@ BaseTrafficGen::noProgress()
|
||||
|
||||
BaseTrafficGen::StatGroup::StatGroup(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(numSuppressed, Stats::Units::Count::get(),
|
||||
ADD_STAT(numSuppressed, Stats::units::Count::get(),
|
||||
"Number of suppressed packets to non-memory space"),
|
||||
ADD_STAT(numPackets, Stats::Units::Count::get(),
|
||||
ADD_STAT(numPackets, Stats::units::Count::get(),
|
||||
"Number of packets generated"),
|
||||
ADD_STAT(numRetries, Stats::Units::Count::get(), "Number of retries"),
|
||||
ADD_STAT(retryTicks, Stats::Units::Tick::get(),
|
||||
ADD_STAT(numRetries, Stats::units::Count::get(), "Number of retries"),
|
||||
ADD_STAT(retryTicks, Stats::units::Tick::get(),
|
||||
"Time spent waiting due to back-pressure"),
|
||||
ADD_STAT(bytesRead, Stats::Units::Byte::get(), "Number of bytes read"),
|
||||
ADD_STAT(bytesWritten, Stats::Units::Byte::get(),
|
||||
ADD_STAT(bytesRead, Stats::units::Byte::get(), "Number of bytes read"),
|
||||
ADD_STAT(bytesWritten, Stats::units::Byte::get(),
|
||||
"Number of bytes written"),
|
||||
ADD_STAT(totalReadLatency, Stats::Units::Tick::get(),
|
||||
ADD_STAT(totalReadLatency, Stats::units::Tick::get(),
|
||||
"Total latency of read requests"),
|
||||
ADD_STAT(totalWriteLatency, Stats::Units::Tick::get(),
|
||||
ADD_STAT(totalWriteLatency, Stats::units::Tick::get(),
|
||||
"Total latency of write requests"),
|
||||
ADD_STAT(totalReads, Stats::Units::Count::get(), "Total num of reads"),
|
||||
ADD_STAT(totalWrites, Stats::Units::Count::get(), "Total num of writes"),
|
||||
ADD_STAT(avgReadLatency, Stats::Units::Rate<
|
||||
Stats::Units::Tick, Stats::Units::Count>::get(),
|
||||
ADD_STAT(totalReads, Stats::units::Count::get(), "Total num of reads"),
|
||||
ADD_STAT(totalWrites, Stats::units::Count::get(), "Total num of writes"),
|
||||
ADD_STAT(avgReadLatency, Stats::units::Rate<
|
||||
Stats::units::Tick, Stats::units::Count>::get(),
|
||||
"Avg latency of read requests", totalReadLatency / totalReads),
|
||||
ADD_STAT(avgWriteLatency, Stats::Units::Rate<
|
||||
Stats::Units::Tick, Stats::Units::Count>::get(),
|
||||
ADD_STAT(avgWriteLatency, Stats::units::Rate<
|
||||
Stats::units::Tick, Stats::units::Count>::get(),
|
||||
"Avg latency of write requests",
|
||||
totalWriteLatency / totalWrites),
|
||||
ADD_STAT(readBW, Stats::Units::Rate<
|
||||
Stats::Units::Byte, Stats::Units::Second>::get(),
|
||||
ADD_STAT(readBW, Stats::units::Rate<
|
||||
Stats::units::Byte, Stats::units::Second>::get(),
|
||||
"Read bandwidth", bytesRead / simSeconds),
|
||||
ADD_STAT(writeBW, Stats::Units::Rate<
|
||||
Stats::Units::Byte, Stats::Units::Second>::get(),
|
||||
ADD_STAT(writeBW, Stats::units::Rate<
|
||||
Stats::units::Byte, Stats::units::Second>::get(),
|
||||
"Write bandwidth", bytesWritten / simSeconds)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user