gem5
v19.0.0.0
|
Templatized storage and interface for a histogram stat. More...
#include <statistics.hh>
Classes | |
struct | Params |
The parameters for a distribution stat. More... | |
Public Member Functions | |
HistStor (Info *info) | |
void | grow_up () |
void | grow_out () |
void | grow_convert () |
void | add (HistStor *) |
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_bucket |
The minimum value to track. More... | |
Counter | max_bucket |
The maximum value to track. More... | |
Counter | bucket_size |
The number of entries in each bucket. More... | |
Counter | sum |
The current sum. More... | |
Counter | logs |
The sum of logarithm of each sample, used to compute geometric mean. 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 histogram stat.
Definition at line 1546 of file statistics.hh.
|
inline |
Definition at line 1578 of file statistics.hh.
References Stats::InfoProxy< Stat, Base >::reset().
void Stats::HistStor::add | ( | HistStor * | hs | ) |
Definition at line 398 of file statistics.cc.
References bucket_size, cvec, grow_up(), ArmISA::i, logs, min_bucket, samples, size(), squares, sum, and Stats::sum().
void Stats::HistStor::grow_convert | ( | ) |
Definition at line 354 of file statistics.cc.
References ArmISA::i.
void Stats::HistStor::grow_out | ( | ) |
Definition at line 315 of file statistics.cc.
References ArmISA::i, and Stats::Info::zero().
void Stats::HistStor::grow_up | ( | ) |
Definition at line 1643 of file statistics.hh.
References Stats::DistData::bucket_size, Stats::HistStor::Params::buckets, Stats::DistData::cvec, Stats::Hist, ArmISA::i, Stats::DistData::logs, Stats::DistData::max, Stats::DistData::max_val, Stats::DistData::min, Stats::DistData::min_val, safe_cast(), Stats::DistData::samples, Stats::DistData::squares, Stats::Info::storageParams, Stats::DistData::sum, Stats::DistData::type, and Stats::DistParams::type.
|
inline |
Reset stat value to default.
Definition at line 1671 of file statistics.hh.
References Stats::HistStor::Params::buckets, ArmISA::i, 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 1595 of file statistics.hh.
References MipsISA::index.
|
inline |
Return the number of buckets in this distribution.
Definition at line 1630 of file statistics.hh.
Referenced by add().
|
inline |
Returns true if any calls to sample have been made.
Definition at line 1637 of file statistics.hh.
|
private |
The number of entries in each bucket.
Definition at line 1564 of file statistics.hh.
Referenced by add().
|
private |
|
private |
The sum of logarithm of each sample, used to compute geometric mean.
Definition at line 1569 of file statistics.hh.
Referenced by add().
|
private |
The maximum value to track.
Definition at line 1562 of file statistics.hh.
|
private |
|
private |
|
private |
|
private |