gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
AbstractMemory::MemStats Struct Reference

#include <abstract_mem.hh>

Inheritance diagram for AbstractMemory::MemStats:
Stats::Group

Public Member Functions

 MemStats (AbstractMemory &mem)
 
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 AbstractMemorymem
 
Stats::Vector bytesRead
 Number of total bytes read from this memory. More...
 
Stats::Vector bytesInstRead
 Number of instruction bytes read from this memory. More...
 
Stats::Vector bytesWritten
 Number of bytes written to this memory. More...
 
Stats::Vector numReads
 Number of read requests. More...
 
Stats::Vector numWrites
 Number of write requests. More...
 
Stats::Vector numOther
 Number of other requests. More...
 
Stats::Formula bwRead
 Read bandwidth from this memory. More...
 
Stats::Formula bwInstRead
 Read bandwidth from this memory. More...
 
Stats::Formula bwWrite
 Write bandwidth from this memory. More...
 
Stats::Formula bwTotal
 Total bandwidth from this memory. More...
 

Detailed Description

Definition at line 167 of file abstract_mem.hh.

Constructor & Destructor Documentation

◆ MemStats()

AbstractMemory::MemStats::MemStats ( AbstractMemory mem)

Definition at line 115 of file abstract_mem.cc.

Member Function Documentation

◆ regStats()

void AbstractMemory::MemStats::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 141 of file abstract_mem.cc.

References System::getRequestorName(), ArmISA::i, System::maxRequestors(), mem, Stats::nonan, Stats::nozero, Stats::Group::regStats(), simSeconds, and Stats::total.

Member Data Documentation

◆ bwInstRead

Stats::Formula AbstractMemory::MemStats::bwInstRead

Read bandwidth from this memory.

Definition at line 189 of file abstract_mem.hh.

◆ bwRead

Stats::Formula AbstractMemory::MemStats::bwRead

Read bandwidth from this memory.

Definition at line 187 of file abstract_mem.hh.

◆ bwTotal

Stats::Formula AbstractMemory::MemStats::bwTotal

Total bandwidth from this memory.

Definition at line 193 of file abstract_mem.hh.

◆ bwWrite

Stats::Formula AbstractMemory::MemStats::bwWrite

Write bandwidth from this memory.

Definition at line 191 of file abstract_mem.hh.

◆ bytesInstRead

Stats::Vector AbstractMemory::MemStats::bytesInstRead

Number of instruction bytes read from this memory.

Definition at line 177 of file abstract_mem.hh.

Referenced by AbstractMemory::access().

◆ bytesRead

Stats::Vector AbstractMemory::MemStats::bytesRead

Number of total bytes read from this memory.

Definition at line 175 of file abstract_mem.hh.

Referenced by AbstractMemory::access().

◆ bytesWritten

Stats::Vector AbstractMemory::MemStats::bytesWritten

Number of bytes written to this memory.

Definition at line 179 of file abstract_mem.hh.

Referenced by AbstractMemory::access().

◆ mem

const AbstractMemory& AbstractMemory::MemStats::mem

Definition at line 172 of file abstract_mem.hh.

◆ numOther

Stats::Vector AbstractMemory::MemStats::numOther

Number of other requests.

Definition at line 185 of file abstract_mem.hh.

Referenced by AbstractMemory::access().

◆ numReads

Stats::Vector AbstractMemory::MemStats::numReads

Number of read requests.

Definition at line 181 of file abstract_mem.hh.

Referenced by AbstractMemory::access().

◆ numWrites

Stats::Vector AbstractMemory::MemStats::numWrites

Number of write requests.

Definition at line 183 of file abstract_mem.hh.

Referenced by AbstractMemory::access().


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

Generated on Wed Sep 30 2020 14:02:20 for gem5 by doxygen 1.8.17