gem5
[DEVELOP-FOR-23.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... | |
bool | newStyleStats () const |
Check if the info is new style stats. More... | |
Private Attributes | |
Info * | _info |
Definition at line 182 of file statistics.hh.
|
inline |
Definition at line 204 of file statistics.hh.
|
inline |
Check that this stat has been set up properly and is ready for use.
Definition at line 223 of file statistics.hh.
|
protected |
Grab the information class for this statistic.
Definition at line 111 of file statistics.cc.
References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().
Referenced by gem5::statistics::DataWrap< Distribution, DistInfoProxy >::info(), setInfo(), setInit(), and setParams().
|
protected |
Grab the information class for this statistic.
|
protected |
Check if the info is new style stats.
Definition at line 139 of file statistics.cc.
References _info.
Referenced by gem5::statistics::DataWrap< Distribution, DistInfoProxy >::DataWrap(), info(), and gem5::statistics::DataWrap< Distribution, DistInfoProxy >::name().
|
inline |
Reset the stat to the default state.
Definition at line 210 of file statistics.hh.
Set up an info class for this statistic.
Definition at line 75 of file statistics.cc.
References _info, info(), panic_if, gem5::statistics::statsList(), and gem5::statistics::statsMap().
Referenced by gem5::statistics::DataWrap< Distribution, DistInfoProxy >::DataWrap().
|
protected |
Save Storage class parameters if any.
Definition at line 105 of file statistics.cc.
References gem5::statistics::Info::flags, info(), gem5::statistics::init, and gem5::Flags< T >::set().
Referenced by gem5::statistics::ScalarBase< Scalar, StatStor >::doInit(), gem5::statistics::VectorBase< Vector, StatStor >::doInit(), gem5::statistics::DistBase< Distribution, DistStor >::doInit(), gem5::statistics::VectorDistBase< VectorAverageDeviation, AvgSampleStor >::doInit(), gem5::statistics::SparseHistBase< SparseHistogram, SparseHistStor >::doInit(), gem5::statistics::ValueBase< Value >::functor(), gem5::statistics::Vector2dBase< Vector2d, StatStor >::init(), gem5::statistics::ValueBase< Value >::method(), gem5::statistics::Formula::operator+=(), gem5::statistics::Formula::operator=(), and gem5::statistics::ValueBase< Value >::scalar().
|
protected |
Save Storage class parameters if any.
Definition at line 99 of file statistics.cc.
References info(), and gem5::statistics::Info::setStorageParams().
Referenced by gem5::statistics::AverageDeviation::AverageDeviation(), gem5::statistics::Distribution::init(), gem5::statistics::Histogram::init(), gem5::statistics::VectorDistribution::init(), gem5::statistics::VectorStandardDeviation::init(), gem5::statistics::VectorAverageDeviation::init(), gem5::statistics::SparseHistogram::init(), and gem5::statistics::StandardDeviation::StandardDeviation().
|
inline |
Definition at line 216 of file statistics.hh.
|
private |
Definition at line 185 of file statistics.hh.
Referenced by info(), newStyleStats(), and setInfo().