gem5 v24.0.0.0
|
#include <statistics.hh>
Public Member Functions | |
InfoAccess () | |
void | reset () |
Reset the stat to the default state. | |
bool | zero () const |
bool | check () const |
Check that this stat has been set up properly and is ready for use. | |
Protected Member Functions | |
void | setInfo (Group *parent, Info *info) |
Set up an info class for this statistic. | |
void | setParams (const StorageParams *params) |
Save Storage class parameters if any. | |
void | setInit () |
Save Storage class parameters if any. | |
Info * | info () |
Grab the information class for this statistic. | |
const Info * | info () const |
Grab the information class for this statistic. | |
bool | newStyleStats () const |
Check if the info is new style stats. | |
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< Derived, InfoProxyType >::info(), gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), setInfo(), setInit(), and setParams().
|
protected |
Grab the information class for this statistic.
Definition at line 125 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 139 of file statistics.cc.
References _info.
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap(), info(), info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::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< Derived, InfoProxyType >::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::DistBase< Derived, Stor >::doInit(), gem5::statistics::ScalarBase< 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::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 99 of file statistics.cc.
References info(), and gem5::statistics::Info::setStorageParams().
Referenced by gem5::statistics::AverageDeviation::AverageDeviation(), gem5::statistics::AverageDeviation::AverageDeviation(), gem5::statistics::AverageDeviation::AverageDeviation(), gem5::statistics::Distribution::init(), gem5::statistics::Histogram::init(), gem5::statistics::SparseHistogram::init(), gem5::statistics::VectorAverageDeviation::init(), gem5::statistics::VectorDistribution::init(), gem5::statistics::VectorStandardDeviation::init(), gem5::statistics::StandardDeviation::StandardDeviation(), gem5::statistics::StandardDeviation::StandardDeviation(), 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(), info(), newStyleStats(), and setInfo().