gem5
v22.1.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... | |
bool | newStyleStats () const |
Check if the info is new style stats. More... | |
Private Attributes | |
Info * | _info |
Definition at line 183 of file statistics.hh.
|
inline |
Definition at line 205 of file statistics.hh.
|
inline |
Check that this stat has been set up properly and is ready for use.
Definition at line 224 of file statistics.hh.
|
protected |
Grab the information class for this statistic.
Definition at line 112 of file statistics.cc.
References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), setInfo(), setInit(), and setParams().
|
protected |
Grab the information class for this statistic.
Definition at line 126 of file statistics.cc.
References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().
|
protected |
Check if the info is new style stats.
Definition at line 140 of file statistics.cc.
References _info.
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap(), info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::name().
|
inline |
Reset the stat to the default state.
Definition at line 211 of file statistics.hh.
Set up an info class for this statistic.
Definition at line 76 of file statistics.cc.
References _info, info(), panic_if, gem5::statistics::statsList(), and gem5::statistics::statsMap().
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap().
|
protected |
Save Storage class parameters if any.
Definition at line 106 of file statistics.cc.
References gem5::statistics::Info::flags, info(), gem5::statistics::init, and gem5::Flags< T >::set().
Referenced by gem5::statistics::ScalarBase< Derived, Stor >::doInit(), gem5::statistics::DistBase< Derived, Stor >::doInit(), gem5::statistics::SparseHistBase< Derived, Stor >::doInit(), gem5::statistics::VectorBase< Derived, Stor >::doInit(), gem5::statistics::VectorDistBase< Derived, Stor >::doInit(), gem5::statistics::ValueBase< Derived >::functor(), gem5::statistics::Vector2dBase< Derived, Stor >::init(), gem5::statistics::ValueBase< Derived >::method(), gem5::statistics::Formula::operator+=(), gem5::statistics::Formula::operator=(), and gem5::statistics::ValueBase< Derived >::scalar().
|
protected |
Save Storage class parameters if any.
Definition at line 100 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::VectorStandardDeviation::init(), gem5::statistics::VectorAverageDeviation::init(), gem5::statistics::SparseHistogram::init(), gem5::statistics::VectorDistribution::init(), and gem5::statistics::StandardDeviation::StandardDeviation().
|
inline |
Definition at line 217 of file statistics.hh.
|
private |
Definition at line 186 of file statistics.hh.
Referenced by info(), newStyleStats(), and setInfo().