gem5
v21.0.0.0
|
#include <statistics.hh>
Public Member Functions | |
InfoAccess () | |
void | reset () |
Reset the stat to the default state. More... | |
bool | zero () const |
bool | check () const |
Check that this stat has been set up properly and is ready for use. More... | |
Protected Member Functions | |
void | setInfo (Group *parent, Info *info) |
Set up an info class for this statistic. More... | |
void | setParams (const StorageParams *params) |
Save Storage class parameters if any. More... | |
void | setInit () |
Save Storage class parameters if any. More... | |
Info * | info () |
Grab the information class for this statistic. More... | |
const Info * | info () const |
Grab the information class for this statistic. More... | |
Private Attributes | |
Info * | _info |
Definition at line 175 of file statistics.hh.
|
inline |
Definition at line 194 of file statistics.hh.
|
inline |
Check that this stat has been set up properly and is ready for use.
Definition at line 213 of file statistics.hh.
|
protected |
Grab the information class for this statistic.
Definition at line 107 of file statistics.cc.
References _info, ArmISA::i, and Stats::statsMap().
Referenced by Stats::DataWrap< SparseHistogram, SparseHistInfoProxy >::info(), setInfo(), setInit(), and setParams().
|
protected |
Grab the information class for this statistic.
|
inline |
Reset the stat to the default state.
Definition at line 200 of file statistics.hh.
Set up an info class for this statistic.
Definition at line 71 of file statistics.cc.
References _info, info(), panic_if, Stats::statsList(), and Stats::statsMap().
Referenced by Stats::DataWrap< SparseHistogram, SparseHistInfoProxy >::DataWrap().
|
protected |
Save Storage class parameters if any.
Definition at line 101 of file statistics.cc.
References Stats::Info::flags, info(), Stats::init, and Flags< T >::set().
Referenced by Stats::ScalarBase< Scalar, StatStor >::doInit(), Stats::VectorBase< Vector, StatStor >::doInit(), Stats::DistBase< Distribution, DistStor >::doInit(), Stats::VectorDistBase< VectorAverageDeviation, AvgSampleStor >::doInit(), Stats::SparseHistBase< SparseHistogram, SparseHistStor >::doInit(), Stats::ValueBase< Value >::functor(), Stats::Vector2dBase< Vector2d, StatStor >::init(), Stats::ValueBase< Value >::method(), Stats::Formula::operator+=(), Stats::Formula::operator=(), and Stats::ValueBase< Value >::scalar().
|
protected |
Save Storage class parameters if any.
Definition at line 95 of file statistics.cc.
References info(), and Stats::Info::storageParams.
Referenced by Stats::AverageDeviation::AverageDeviation(), Stats::Distribution::init(), Stats::Histogram::init(), Stats::VectorDistribution::init(), Stats::VectorStandardDeviation::init(), Stats::VectorAverageDeviation::init(), Stats::SparseHistogram::init(), and Stats::StandardDeviation::StandardDeviation().
|
inline |
Definition at line 206 of file statistics.hh.
|
private |
Definition at line 178 of file statistics.hh.