gem5 v24.0.0.0
|
#include <statistics.hh>
Public Member Functions | |
ValueBase (Group *parent, const char *name, const units::Base *unit, const char *desc) | |
~ValueBase () | |
template<class T > | |
Derived & | scalar (T &value) |
template<class T > | |
Derived & | functor (const T &func) |
template<class T > | |
Derived & | functor (T &func) |
template<class T , class V > | |
Derived & | method (T *obj, V(T::*method)() const) |
Extended functor that calls the specified method of the provided object. | |
Counter | value () |
Result | result () const |
Result | total () const |
size_type | size () const |
std::string | str () const |
bool | zero () const |
bool | check () const |
void | prepare () |
void | reset () |
Public Member Functions inherited from gem5::statistics::DataWrap< Derived, ScalarInfoProxy > | |
const Info * | info () const |
DataWrap ()=delete | |
DataWrap (const DataWrap &)=delete | |
DataWrap (Group *parent, const char *name, const units::Base *unit, const char *desc) | |
DataWrap & | operator= (const DataWrap &)=delete |
Derived & | name (const std::string &name) |
Set the name and marks this stat to print at the end of simulation. | |
const std::string & | name () const |
Derived & | setSeparator (const std::string &_sep) |
Set the character(s) used between the name and vector number on vectors, dist, etc. | |
const std::string & | setSeparator () const |
Derived & | unit (const units::Base *_unit) |
Set the unit of the stat. | |
Derived & | desc (const std::string &_desc) |
Set the description and marks this stat to print at the end of simulation. | |
Derived & | precision (int _precision) |
Set the precision and marks this stat to print at the end of simulation. | |
Derived & | flags (Flags _flags) |
Set the flags and marks this stat to print at the end of simulation. | |
Derived & | prereq (const Stat &prereq) |
Set the prerequisite stat and marks this stat to print at the end of simulation. | |
Public Member Functions inherited from gem5::statistics::InfoAccess | |
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. | |
Private Attributes | |
ProxyInfo * | proxy |
Additional Inherited Members | |
Public Types inherited from gem5::statistics::DataWrap< Derived, ScalarInfoProxy > | |
typedef ScalarInfoProxy< Derived > | Info |
Protected Member Functions inherited from gem5::statistics::DataWrap< Derived, ScalarInfoProxy > | |
Derived & | self () |
Info * | info () |
Protected Member Functions inherited from gem5::statistics::InfoAccess | |
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. | |
Definition at line 713 of file statistics.hh.
|
inline |
Definition at line 719 of file statistics.hh.
|
inline |
Definition at line 727 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy.
|
inline |
Definition at line 779 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy.
|
inline |
Definition at line 740 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, gem5::statistics::DataWrap< Derived, ScalarInfoProxy >::self(), and gem5::statistics::InfoAccess::setInit().
Referenced by gem5::BaseCPU::GlobalStats::GlobalStats(), gem5::Root::RootStats::RootStats(), and gem5::ThermalDomain::ThermalDomain().
|
inline |
Definition at line 749 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, gem5::statistics::DataWrap< Derived, ScalarInfoProxy >::self(), and gem5::statistics::InfoAccess::setInit().
|
inline |
Extended functor that calls the specified method of the provided object.
obj | Pointer to the object whose method should be called. |
method | Pointer of the function / method of the object. |
Definition at line 765 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::method(), gem5::statistics::ValueBase< Derived >::proxy, gem5::statistics::DataWrap< Derived, ScalarInfoProxy >::self(), and gem5::statistics::InfoAccess::setInit().
Referenced by gem5::statistics::ValueBase< Derived >::method(), gem5::PowerModel::PowerModel(), gem5::PowerModelState::PowerModelState(), and gem5::VoltageDomain::VoltageDomainStats::VoltageDomainStats().
|
inline |
Definition at line 780 of file statistics.hh.
|
inline |
Definition at line 781 of file statistics.hh.
|
inline |
Definition at line 773 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ScalarInfo::result().
|
inline |
Definition at line 731 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, gem5::statistics::DataWrap< Derived, ScalarInfoProxy >::self(), gem5::statistics::InfoAccess::setInit(), and gem5::statistics::ValueBase< Derived >::value().
Referenced by gem5::ClockDomain::ClockDomainStats::ClockDomainStats(), and gem5::Root::RootStats::RootStats().
|
inline |
Definition at line 775 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ProxyInfo::size().
|
inline |
Definition at line 777 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ProxyInfo::str().
|
inline |
Definition at line 774 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ScalarInfo::total().
|
inline |
Definition at line 772 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ScalarInfo::value().
Referenced by gem5::CommMonitor::samplePeriodic(), and gem5::statistics::ValueBase< Derived >::scalar().
|
inline |
Definition at line 778 of file statistics.hh.
References gem5::statistics::ValueBase< Derived >::proxy, and gem5::statistics::ProxyInfo::zero().
|
private |
Definition at line 716 of file statistics.hh.
Referenced by gem5::statistics::ValueBase< Derived >::check(), gem5::statistics::ValueBase< Derived >::functor(), gem5::statistics::ValueBase< Derived >::functor(), gem5::statistics::ValueBase< Derived >::method(), gem5::statistics::ValueBase< Derived >::result(), gem5::statistics::ValueBase< Derived >::scalar(), gem5::statistics::ValueBase< Derived >::size(), gem5::statistics::ValueBase< Derived >::str(), gem5::statistics::ValueBase< Derived >::total(), gem5::statistics::ValueBase< Derived >::value(), gem5::statistics::ValueBase< Derived >::zero(), and gem5::statistics::ValueBase< Derived >::~ValueBase().