gem5
v19.0.0.0
|
Templatized storage and interface for a distribution stat. More...
#include <statistics.hh>
Classes | |
struct | Params |
The parameters for a distribution stat. More... | |
Public Member Functions | |
DistStor (Info *info) | |
void | sample (Counter val, int number) |
Add a value to the distribution for the given number of times. More... | |
size_type | size () const |
Return the number of buckets in this distribution. More... | |
bool | zero () const |
Returns true if any calls to sample have been made. More... | |
void | prepare (Info *info, DistData &data) |
void | reset (Info *info) |
Reset stat value to default. More... | |
Private Attributes | |
Counter | min_track |
The minimum value to track. More... | |
Counter | max_track |
The maximum value to track. More... | |
Counter | bucket_size |
The number of entries in each bucket. More... | |
Counter | min_val |
The smallest value sampled. More... | |
Counter | max_val |
The largest value sampled. More... | |
Counter | underflow |
The number of values sampled less than min. More... | |
Counter | overflow |
The number of values sampled more than max. More... | |
Counter | sum |
The current sum. More... | |
Counter | squares |
The sum of squares. More... | |
Counter | samples |
The number of samples. More... | |
VCounter | cvec |
Counter for each bucket. More... | |
Templatized storage and interface for a distribution stat.
Definition at line 1395 of file statistics.hh.
|
inline |
Definition at line 1440 of file statistics.hh.
References Stats::InfoProxy< Stat, Base >::reset().
Definition at line 1493 of file statistics.hh.
References Stats::DistData::bucket_size, Stats::DistStor::Params::bucket_size, Stats::DistStor::Params::buckets, Stats::DistData::cvec, Stats::Dist, ArmISA::i, Stats::DistData::max, Stats::DistStor::Params::max, Stats::DistData::max_val, Stats::DistData::min, Stats::DistStor::Params::min, Stats::DistData::min_val, Stats::DistData::overflow, sc_dt::overflow(), safe_cast(), Stats::DistData::samples, Stats::DistData::squares, Stats::Info::storageParams, Stats::DistData::sum, Stats::DistData::type, Stats::DistParams::type, and Stats::DistData::underflow.
|
inline |
Reset stat value to default.
Definition at line 1521 of file statistics.hh.
References Stats::DistStor::Params::bucket_size, ArmISA::i, Stats::DistStor::Params::max, Stats::DistStor::Params::min, safe_cast(), and Stats::Info::storageParams.
|
inline |
Add a value to the distribution for the given number of times.
val | The value to add. |
number | The number of times to add the value. |
Definition at line 1452 of file statistics.hh.
References MipsISA::index, and X86ISA::val.
|
inline |
Return the number of buckets in this distribution.
Definition at line 1480 of file statistics.hh.
|
inline |
Returns true if any calls to sample have been made.
Definition at line 1487 of file statistics.hh.
|
private |
The number of entries in each bucket.
Definition at line 1420 of file statistics.hh.
|
private |
Counter for each bucket.
Definition at line 1437 of file statistics.hh.
|
private |
The maximum value to track.
Definition at line 1418 of file statistics.hh.
|
private |
The largest value sampled.
Definition at line 1425 of file statistics.hh.
|
private |
The minimum value to track.
Definition at line 1416 of file statistics.hh.
|
private |
The smallest value sampled.
Definition at line 1423 of file statistics.hh.
|
private |
The number of values sampled more than max.
Definition at line 1429 of file statistics.hh.
|
private |
The number of samples.
Definition at line 1435 of file statistics.hh.
|
private |
The sum of squares.
Definition at line 1433 of file statistics.hh.
|
private |
The current sum.
Definition at line 1431 of file statistics.hh.
|
private |
The number of values sampled less than min.
Definition at line 1427 of file statistics.hh.