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
@@ -422,13 +422,13 @@ SimpleCache::sendRangeChange() const
|
||||
}
|
||||
}
|
||||
|
||||
SimpleCache::SimpleCacheStats::SimpleCacheStats(Stats::Group *parent)
|
||||
: Stats::Group(parent),
|
||||
ADD_STAT(hits, Stats::units::Count::get(), "Number of hits"),
|
||||
ADD_STAT(misses, Stats::units::Count::get(), "Number of misses"),
|
||||
ADD_STAT(missLatency, Stats::units::Tick::get(),
|
||||
SimpleCache::SimpleCacheStats::SimpleCacheStats(statistics::Group *parent)
|
||||
: statistics::Group(parent),
|
||||
ADD_STAT(hits, statistics::units::Count::get(), "Number of hits"),
|
||||
ADD_STAT(misses, statistics::units::Count::get(), "Number of misses"),
|
||||
ADD_STAT(missLatency, statistics::units::Tick::get(),
|
||||
"Ticks for misses to the cache"),
|
||||
ADD_STAT(hitRatio, Stats::units::Ratio::get(),
|
||||
ADD_STAT(hitRatio, statistics::units::Ratio::get(),
|
||||
"The ratio of hits to the total accesses to the cache",
|
||||
hits / (hits + misses))
|
||||
{
|
||||
|
||||
@@ -293,13 +293,13 @@ class SimpleCache : public ClockedObject
|
||||
|
||||
/// Cache statistics
|
||||
protected:
|
||||
struct SimpleCacheStats : public Stats::Group
|
||||
struct SimpleCacheStats : public statistics::Group
|
||||
{
|
||||
SimpleCacheStats(Stats::Group *parent);
|
||||
Stats::Scalar hits;
|
||||
Stats::Scalar misses;
|
||||
Stats::Histogram missLatency;
|
||||
Stats::Formula hitRatio;
|
||||
SimpleCacheStats(statistics::Group *parent);
|
||||
statistics::Scalar hits;
|
||||
statistics::Scalar misses;
|
||||
statistics::Histogram missLatency;
|
||||
statistics::Formula hitRatio;
|
||||
} stats;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user