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
@@ -46,23 +46,24 @@ class Workload : public SimObject
|
||||
protected:
|
||||
virtual Addr fixFuncEventAddr(Addr addr) const { return addr; }
|
||||
|
||||
struct WorkloadStats : public Stats::Group
|
||||
struct WorkloadStats : public statistics::Group
|
||||
{
|
||||
struct InstStats: public Stats::Group
|
||||
struct InstStats: public statistics::Group
|
||||
{
|
||||
Stats::Scalar arm;
|
||||
Stats::Scalar quiesce;
|
||||
statistics::Scalar arm;
|
||||
statistics::Scalar quiesce;
|
||||
|
||||
InstStats(Stats::Group *parent) : Stats::Group(parent, "inst"),
|
||||
ADD_STAT(arm, Stats::units::Count::get(),
|
||||
InstStats(statistics::Group *parent)
|
||||
: statistics::Group(parent, "inst"),
|
||||
ADD_STAT(arm, statistics::units::Count::get(),
|
||||
"number of arm instructions executed"),
|
||||
ADD_STAT(quiesce, Stats::units::Count::get(),
|
||||
ADD_STAT(quiesce, statistics::units::Count::get(),
|
||||
"number of quiesce instructions executed")
|
||||
{}
|
||||
|
||||
} instStats;
|
||||
|
||||
WorkloadStats(Workload *workload) : Stats::Group(workload),
|
||||
WorkloadStats(Workload *workload) : statistics::Group(workload),
|
||||
instStats(workload)
|
||||
{}
|
||||
} stats;
|
||||
|
||||
Reference in New Issue
Block a user