gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
QoS::MemCtrl::MemCtrlStats Struct Reference

#include <mem_ctrl.hh>

Inheritance diagram for QoS::MemCtrl::MemCtrlStats:
Stats::Group

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 InforesolveStat (std::string name) const
 Resolve a stat by its name within this group. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

const MemCtrlmemCtrl
 
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...
 

Detailed Description

Definition at line 124 of file mem_ctrl.hh.

Constructor & Destructor Documentation

◆ MemCtrlStats()

QoS::MemCtrl::MemCtrlStats::MemCtrlStats ( MemCtrl mc)

Definition at line 277 of file mem_ctrl.cc.

Member Function Documentation

◆ regStats()

void QoS::MemCtrl::MemCtrlStats::regStats ( )
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().

Member Data Documentation

◆ avgPriority

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().

◆ avgPriorityDistance

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().

◆ memCtrl

const MemCtrl& QoS::MemCtrl::MemCtrlStats::memCtrl

Definition at line 130 of file mem_ctrl.hh.

◆ numReadWriteTurnArounds

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().

◆ numStayReadState

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().

◆ numStayWriteState

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().

◆ numWriteReadTurnArounds

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().

◆ priorityMaxLatency

Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMaxLatency

per-priority maximum latency

Definition at line 143 of file mem_ctrl.hh.

Referenced by QoS::MemCtrl::logResponse().

◆ priorityMinLatency

Stats::Vector QoS::MemCtrl::MemCtrlStats::priorityMinLatency

per-priority minimum latency

Definition at line 141 of file mem_ctrl.hh.

Referenced by QoS::MemCtrl::logResponse().


The documentation for this struct was generated from the following files:

Generated on Wed Sep 30 2020 14:03:08 for gem5 by doxygen 1.8.17