46 const ScalarStatTesterParams ¶ms
47) : statistics::
Group(parent),
50 statistics::units::Count::get(),
51 params.description.c_str()
59 for (
int i = 0;
i <
params.values.size();
i++)
67 const VectorStatTesterParams &
params
68) : statistics::
Group(parent),
71 statistics::units::Count::get(),
76 for (
int i = 0;
i <
params.values.size();
i++)
78 if (
params.subnames.size() >
i) {
83 if (
params.subdescs.size() >
i) {
94 for (
int j = 0; j <
params.y_size; j++)
103 const Vector2dStatTesterParams &
params
104) : statistics::
Group(parent),
107 statistics::units::Count::get(),
108 params.description.c_str()
117 if (
params.subnames.size() >
i) {
122 if (
params.subdescs.size() >
i) {
126 for (
int j = 0; j <
params.y_size; j++)
128 if (
params.ysubnames.size() > j) {
141 for (
auto sample :
params.samples) {
142 stats.sparse_histogram.sample(sample);
148 const SparseHistStatTesterParams &
params
149) : statistics::
Group(parent),
153 statistics::units::Count::get(),
154 params.description.c_str()
158 (std::set(
params.samples.begin(),
params.samples.end())).size()
virtual std::string name() const
gem5::ScalarStatTester::ScalarStatTesterStats stats
ScalarStatTesterParams params
SparseHistStatTesterParams params
Vector2dStatTesterParams params
gem5::Vector2dStatTester::Vector2dStatTesterStats stats
VectorStatTesterParams params
gem5::VectorStatTester::VectorStatTesterStats stats
Derived & ysubname(off_type index, const std::string &subname)
Derived & subname(off_type index, const std::string &name)
Set the subfield name for the given index, and marks this stat to print at the end of simulation.
Derived & subdesc(off_type index, const std::string &desc)
Set the subfield description for the given index and marks this stat to print at the end of simulatio...
Counter value() const
Return the current value of this stat as its base type.
SparseHistogram & init(size_type size)
Set the parameters of this histogram.
Derived & init(size_type _x, size_type _y)
Derived & init(size_type size)
Set this vector to have the given size.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
ScalarStatTesterStats(statistics::Group *parent, const ScalarStatTesterParams ¶ms)
statistics::Scalar scalar
statistics::SparseHistogram sparse_histogram
SparseHistStatTesterStats(statistics::Group *parent, const SparseHistStatTesterParams ¶ms)
Vector2dStatTesterStats(statistics::Group *parent, const Vector2dStatTesterParams ¶ms)
statistics::Vector2d vector2d
VectorStatTesterStats(statistics::Group *parent, const VectorStatTesterParams ¶ms)
statistics::Vector vector
const std::string & name()