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:
Daniel R. Carvalho
2021-05-06 20:00:51 -03:00
committed by Daniel Carvalho
parent fa505f1c23
commit 98ac080ec4
228 changed files with 3078 additions and 2970 deletions

View File

@@ -146,15 +146,15 @@ class BaseCPU : public ClockedObject
const unsigned int _cacheLineSize;
/** Global CPU statistics that are merged into the Root object. */
struct GlobalStats : public Stats::Group
struct GlobalStats : public statistics::Group
{
GlobalStats(::Stats::Group *parent);
GlobalStats(::statistics::Group *parent);
::Stats::Value simInsts;
::Stats::Value simOps;
::statistics::Value simInsts;
::statistics::Value simOps;
::Stats::Formula hostInstRate;
::Stats::Formula hostOpRate;
::statistics::Formula hostInstRate;
::statistics::Formula hostOpRate;
};
/**
@@ -587,13 +587,13 @@ class BaseCPU : public ClockedObject
}
public:
struct BaseCPUStats : public Stats::Group
struct BaseCPUStats : public statistics::Group
{
BaseCPUStats(Stats::Group *parent);
BaseCPUStats(statistics::Group *parent);
// Number of CPU cycles simulated
Stats::Scalar numCycles;
Stats::Scalar numWorkItemsStarted;
Stats::Scalar numWorkItemsCompleted;
statistics::Scalar numCycles;
statistics::Scalar numWorkItemsStarted;
statistics::Scalar numWorkItemsCompleted;
} baseStats;
private: