|
gem5
v19.0.0.0
|
#include <mem_ctrl.hh>
Public Member Functions | |
| MemCtrlStats (MemCtrl &mc) | |
| void | regStats () override |
| Callback to set stat parameters. More... | |
Public Member Functions inherited from Stats::Group | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. More... | |
| virtual | ~Group () |
| virtual void | resetStats () |
| Callback to reset stats. More... | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. More... | |
| void | addStat (Stats::Info *info) |
| Register a stat with this group. More... | |
| const std::map< std::string, Group * > & | getStatGroups () const |
| Get all child groups associated with this object. More... | |
| const std::vector< Info * > & | getStats () const |
| Get all stats associated with this object. More... | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. More... | |
Public Attributes | |
| const MemCtrl & | memCtrl |
| Stats::VectorStandardDeviation | avgPriority |
| per-master average QoS priority More... | |
| Stats::VectorStandardDeviation | avgPriorityDistance |
| per-master average QoS distance between assigned and queued values More... | |
| Stats::Vector | priorityMinLatency |
| per-priority minimum latency More... | |
| Stats::Vector | priorityMaxLatency |
| per-priority maximum latency More... | |
| Stats::Scalar | numReadWriteTurnArounds |
| Count the number of turnarounds READ to WRITE. More... | |
| Stats::Scalar | numWriteReadTurnArounds |
| Count the number of turnarounds WRITE to READ. More... | |
| Stats::Scalar | numStayReadState |
| Count the number of times bus staying in READ state. More... | |
| Stats::Scalar | numStayWriteState |
| Count the number of times bus staying in WRITE state. More... | |
Definition at line 126 of file mem_ctrl.hh.
| QoS::MemCtrl::MemCtrlStats::MemCtrlStats | ( | MemCtrl & | mc | ) |
Definition at line 284 of file mem_ctrl.cc.
|
overridevirtual |
Callback to set stat parameters.
This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.
Reimplemented from Stats::Group.
Definition at line 310 of file mem_ctrl.cc.
References AbstractMemory::_system, avgPriority, avgPriorityDistance, Stats::DataWrap< Derived, InfoProxyType >::flags(), System::getMasterName(), ArmISA::i, Stats::VectorBase< Derived, Stor >::init(), Stats::VectorStandardDeviation::init(), ArmISA::j, System::maxMasters(), memCtrl, Stats::nonan, Stats::nozero, QoS::MemCtrl::numPriorities(), Stats::DataWrap< Derived, InfoProxyType >::precision(), priorityMaxLatency, priorityMinLatency, Stats::Group::regStats(), Stats::DataWrapVec< Derived, InfoProxyType >::subname(), AbstractMemory::system(), and sc_dt::to_string().
| Stats::VectorStandardDeviation QoS::MemCtrl::MemCtrlStats::avgPriority |
per-master average QoS priority
Definition at line 135 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logRequest(), and regStats().
| Stats::VectorStandardDeviation QoS::MemCtrl::MemCtrlStats::avgPriorityDistance |
per-master average QoS distance between assigned and queued values
Definition at line 140 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logRequest(), and regStats().
| const MemCtrl& QoS::MemCtrl::MemCtrlStats::memCtrl |
Definition at line 132 of file mem_ctrl.hh.
Referenced by regStats().
| Stats::Scalar QoS::MemCtrl::MemCtrlStats::numReadWriteTurnArounds |
Count the number of turnarounds READ to WRITE.
Definition at line 147 of file mem_ctrl.hh.
| Stats::Scalar QoS::MemCtrl::MemCtrlStats::numStayReadState |
Count the number of times bus staying in READ state.
Definition at line 151 of file mem_ctrl.hh.
| Stats::Scalar QoS::MemCtrl::MemCtrlStats::numStayWriteState |
Count the number of times bus staying in WRITE state.
Definition at line 153 of file mem_ctrl.hh.
| Stats::Scalar QoS::MemCtrl::MemCtrlStats::numWriteReadTurnArounds |
Count the number of turnarounds WRITE to READ.
Definition at line 149 of file mem_ctrl.hh.
| Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMaxLatency |
per-priority maximum latency
Definition at line 145 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logResponse(), and regStats().
| Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMinLatency |
per-priority minimum latency
Definition at line 143 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logResponse(), and regStats().