|
gem5 [DEVELOP-FOR-25.0]
|
#include <statistics.hh>
Public Types | |
| typedef InfoProxyType< Derived > | Info |
Public Member Functions | |
| const Info * | info () const |
| DataWrap ()=delete | |
| DataWrap (const DataWrap &)=delete | |
| DataWrap & | operator= (const DataWrap &)=delete |
| DataWrap (Group *parent, const char *name, const units::Base *unit, const char *desc) | |
| 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. | |
| template<class Stat> | |
| 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. | |
Protected Member Functions | |
| 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 227 of file statistics.hh.
| typedef InfoProxyType<Derived> gem5::statistics::DataWrap< Derived, InfoProxyType >::Info |
Definition at line 230 of file statistics.hh.
|
delete |
Referenced by DataWrap(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::DataWrapVec(), and operator=().
|
delete |
References DataWrap().
|
inline |
Definition at line 254 of file statistics.hh.
References gem5::statistics::Group::addStat(), gem5::csprintf(), desc(), gem5::statistics::display, info(), name(), gem5::statistics::InfoAccess::newStyleStats(), self(), gem5::statistics::InfoAccess::setInfo(), unit(), warn, and warn_once.
|
inline |
Set the description and marks this stat to print at the end of simulation.
| desc | The new description. |
Definition at line 333 of file statistics.hh.
References info(), and self().
Referenced by DataWrap(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::DataWrapVec(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::DataWrapVec2d(), and gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc().
|
inline |
Set the flags and marks this stat to print at the end of simulation.
| f | The new flags. |
Definition at line 357 of file statistics.hh.
|
inlineprotected |
Definition at line 237 of file statistics.hh.
References gem5::statistics::InfoAccess::info(), and gem5::safe_cast().
Referenced by DataWrap(), desc(), flags(), name(), name(), precision(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::prepare(), prereq(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::reset(), setSeparator(), setSeparator(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname(), unit(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), and gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubnames().
|
inline |
Definition at line 244 of file statistics.hh.
References gem5::statistics::InfoAccess::info(), and gem5::safe_cast().
|
inline |
Definition at line 295 of file statistics.hh.
References info().
|
inline |
Set the name and marks this stat to print at the end of simulation.
| name | The new name. |
Definition at line 288 of file statistics.hh.
References gem5::statistics::display, info(), name(), gem5::statistics::InfoAccess::newStyleStats(), and self().
Referenced by DataWrap(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::DataWrapVec(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::DataWrapVec2d(), name(), gem5::ruby::garnet::GarnetNetwork::regStats(), and gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname().
|
delete |
References DataWrap().
|
inline |
Set the precision and marks this stat to print at the end of simulation.
| _precision | The new precision |
Definition at line 345 of file statistics.hh.
|
inline |
|
inlineprotected |
Definition at line 233 of file statistics.hh.
Referenced by DataWrap(), desc(), flags(), name(), precision(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::prepare(), prereq(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::reset(), setSeparator(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname(), unit(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), and gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubnames().
|
inline |
Definition at line 309 of file statistics.hh.
References info().
|
inline |
Set the character(s) used between the name and vector number on vectors, dist, etc.
| _sep | The new separator string |
Definition at line 304 of file statistics.hh.
|
inline |
Set the unit of the stat.
| unit | The new unit. |
Definition at line 320 of file statistics.hh.
References info(), and self().
Referenced by DataWrap(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::DataWrapVec(), and gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::DataWrapVec2d().