gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 116 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 142 of file abstract_mem.cc.

References bwInstRead, bwRead, bwTotal, bwWrite, bytesInstRead, bytesRead, bytesWritten, Stats::DataWrap< Derived, InfoProxyType >::flags(), System::getMasterName(), ArmISA::i, Stats::VectorBase< Derived, Stor >::init(), System::maxMasters(), mem, Stats::nonan, Stats::nozero, numOther, numReads, numWrites, Stats::DataWrap< Derived, InfoProxyType >::precision(), Stats::DataWrap< Derived, InfoProxyType >::prereq(), Stats::Group::regStats(), simSeconds, Stats::DataWrapVec< Derived, InfoProxyType >::subname(), AbstractMemory::system(), 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.

Referenced by regStats().

◆ bwRead

Stats::Formula AbstractMemory::MemStats::bwRead

Read bandwidth from this memory.

Definition at line 187 of file abstract_mem.hh.

Referenced by regStats().

◆ bwTotal

Stats::Formula AbstractMemory::MemStats::bwTotal

Total bandwidth from this memory.

Definition at line 193 of file abstract_mem.hh.

Referenced by regStats().

◆ bwWrite

Stats::Formula AbstractMemory::MemStats::bwWrite

Write bandwidth from this memory.

Definition at line 191 of file abstract_mem.hh.

Referenced by regStats().

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

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

◆ bytesWritten

Stats::Vector AbstractMemory::MemStats::bytesWritten

Number of bytes written to this memory.

Definition at line 179 of file abstract_mem.hh.

Referenced by regStats().

◆ mem

const AbstractMemory& AbstractMemory::MemStats::mem

Definition at line 172 of file abstract_mem.hh.

Referenced by regStats().

◆ numOther

Stats::Vector AbstractMemory::MemStats::numOther

Number of other requests.

Definition at line 185 of file abstract_mem.hh.

Referenced by regStats().

◆ numReads

Stats::Vector AbstractMemory::MemStats::numReads

Number of read requests.

Definition at line 181 of file abstract_mem.hh.

Referenced by regStats().

◆ numWrites

Stats::Vector AbstractMemory::MemStats::numWrites

Number of write requests.

Definition at line 183 of file abstract_mem.hh.

Referenced by regStats().


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

Generated on Mon Jun 8 2020 15:45:18 for gem5 by doxygen 1.8.13