gem5
v21.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. More... | |
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 () |
![]() | |
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. More... | |
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. More... | |
const std::string & | setSeparator () const |
Derived & | unit (const Units::Base *_unit) |
Set the unit of the stat. More... | |
Derived & | desc (const std::string &_desc) |
Set the description and marks this stat to print at the end of simulation. More... | |
Derived & | precision (int _precision) |
Set the precision and marks this stat to print at the end of simulation. More... | |
Derived & | flags (Flags _flags) |
Set the flags and marks this stat to print at the end of simulation. More... | |
Derived & | prereq (const Stat &prereq) |
Set the prerequisite stat and marks this stat to print at the end of simulation. More... | |
![]() | |
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... | |
Private Attributes | |
ProxyInfo * | proxy |
Additional Inherited Members | |
![]() | |
typedef ScalarInfoProxy< Derived > | Info |
![]() | |
Derived & | self () |
Info * | info () |
![]() | |
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... | |
Definition at line 695 of file statistics.hh.
|
inline |
Definition at line 701 of file statistics.hh.
|
inline |
Definition at line 709 of file statistics.hh.
|
inline |
Definition at line 761 of file statistics.hh.
|
inline |
Definition at line 722 of file statistics.hh.
Referenced by BaseCPU::GlobalStats::GlobalStats(), Root::RootStats::RootStats(), and ThermalDomain::ThermalDomain().
|
inline |
Definition at line 731 of file statistics.hh.
|
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 747 of file statistics.hh.
Referenced by Stats::ValueBase< Value >::method(), PowerModel::PowerModel(), PowerModelState::PowerModelState(), and VoltageDomain::VoltageDomainStats::VoltageDomainStats().
|
inline |
Definition at line 762 of file statistics.hh.
|
inline |
Definition at line 763 of file statistics.hh.
|
inline |
Definition at line 755 of file statistics.hh.
|
inline |
Definition at line 713 of file statistics.hh.
Referenced by ClockDomain::ClockDomainStats::ClockDomainStats(), and Root::RootStats::RootStats().
|
inline |
Definition at line 757 of file statistics.hh.
|
inline |
Definition at line 759 of file statistics.hh.
|
inline |
Definition at line 756 of file statistics.hh.
|
inline |
Definition at line 754 of file statistics.hh.
Referenced by CommMonitor::samplePeriodic(), and Stats::ValueBase< Value >::scalar().
|
inline |
Definition at line 760 of file statistics.hh.
|
private |
Definition at line 698 of file statistics.hh.
Referenced by Stats::ValueBase< Value >::check(), Stats::ValueBase< Value >::functor(), Stats::ValueBase< Value >::method(), Stats::ValueBase< Value >::result(), Stats::ValueBase< Value >::scalar(), Stats::ValueBase< Value >::size(), Stats::ValueBase< Value >::str(), Stats::ValueBase< Value >::total(), Stats::ValueBase< Value >::value(), Stats::ValueBase< Value >::zero(), and Stats::ValueBase< Value >::~ValueBase().