base-stats,misc: Rename Stats namespace as statistics
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::Stats became ::statistics. "statistics" was chosen over "stats" to avoid generating conflicts with the already existing variables (there are way too many "stats" in the codebase), which would make this patch even more disturbing for the users. Change-Id: If877b12d7dac356f86e3b3d941bf7558a4fd8719 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45421 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
fa505f1c23
commit
98ac080ec4
@@ -455,23 +455,22 @@ FlashDevice::getUnknownPages(uint32_t index)
|
||||
return unknownPages[index >> 5] & (0x01 << (index % 32));
|
||||
}
|
||||
|
||||
FlashDevice::
|
||||
FlashDeviceStats::FlashDeviceStats(Stats::Group *parent)
|
||||
: Stats::Group(parent, "FlashDevice"),
|
||||
ADD_STAT(totalGCActivations, Stats::units::Count::get(),
|
||||
FlashDevice::FlashDeviceStats::FlashDeviceStats(statistics::Group *parent)
|
||||
: statistics::Group(parent, "FlashDevice"),
|
||||
ADD_STAT(totalGCActivations, statistics::units::Count::get(),
|
||||
"Number of Garbage collector activations"),
|
||||
ADD_STAT(writeAccess, Stats::units::Count::get(),
|
||||
ADD_STAT(writeAccess, statistics::units::Count::get(),
|
||||
"Histogram of write addresses"),
|
||||
ADD_STAT(readAccess, Stats::units::Count::get(),
|
||||
ADD_STAT(readAccess, statistics::units::Count::get(),
|
||||
"Histogram of read addresses"),
|
||||
ADD_STAT(fileSystemAccess, Stats::units::Count::get(),
|
||||
ADD_STAT(fileSystemAccess, statistics::units::Count::get(),
|
||||
"Histogram of file system accesses"),
|
||||
ADD_STAT(writeLatency, Stats::units::Tick::get(),
|
||||
ADD_STAT(writeLatency, statistics::units::Tick::get(),
|
||||
"Histogram of write latency"),
|
||||
ADD_STAT(readLatency, Stats::units::Tick::get(),
|
||||
ADD_STAT(readLatency, statistics::units::Tick::get(),
|
||||
"Histogram of read latency")
|
||||
{
|
||||
using namespace Stats;
|
||||
using namespace statistics;
|
||||
|
||||
/** Amount of GC activations*/
|
||||
totalGCActivations
|
||||
|
||||
Reference in New Issue
Block a user