gem5
v20.1.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 (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... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Attributes | |
const MemCtrl & | memCtrl |
Stats::VectorStandardDeviation | avgPriority |
per-requestor average QoS priority More... | |
Stats::VectorStandardDeviation | avgPriorityDistance |
per-requestor 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 124 of file mem_ctrl.hh.
QoS::MemCtrl::MemCtrlStats::MemCtrlStats | ( | MemCtrl & | mc | ) |
Definition at line 277 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 303 of file mem_ctrl.cc.
References System::getRequestorName(), ArmISA::i, ArmISA::j, System::maxRequestors(), SimObject::name(), Stats::nonan, Stats::nozero, Stats::Group::regStats(), QoS::MemCtrl::system(), and sc_dt::to_string().
Stats::VectorStandardDeviation QoS::MemCtrl::MemCtrlStats::avgPriority |
per-requestor average QoS priority
Definition at line 133 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logRequest().
Stats::VectorStandardDeviation QoS::MemCtrl::MemCtrlStats::avgPriorityDistance |
per-requestor average QoS distance between assigned and queued values
Definition at line 138 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logRequest().
const MemCtrl& QoS::MemCtrl::MemCtrlStats::memCtrl |
Definition at line 130 of file mem_ctrl.hh.
Stats::Scalar QoS::MemCtrl::MemCtrlStats::numReadWriteTurnArounds |
Count the number of turnarounds READ to WRITE.
Definition at line 145 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::recordTurnaroundStats().
Stats::Scalar QoS::MemCtrl::MemCtrlStats::numStayReadState |
Count the number of times bus staying in READ state.
Definition at line 149 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::recordTurnaroundStats().
Stats::Scalar QoS::MemCtrl::MemCtrlStats::numStayWriteState |
Count the number of times bus staying in WRITE state.
Definition at line 151 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::recordTurnaroundStats().
Stats::Scalar QoS::MemCtrl::MemCtrlStats::numWriteReadTurnArounds |
Count the number of turnarounds WRITE to READ.
Definition at line 147 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::recordTurnaroundStats().
Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMaxLatency |
per-priority maximum latency
Definition at line 143 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logResponse().
Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMinLatency |
per-priority minimum latency
Definition at line 141 of file mem_ctrl.hh.
Referenced by QoS::MemCtrl::logResponse().