gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::memory::AbstractMemory::MemStats Struct Reference

#include <abstract_mem.hh>

Inheritance diagram for gem5::memory::AbstractMemory::MemStats:
gem5::statistics::Group

Public Member Functions

 MemStats (AbstractMemory &mem)
 
void regStats () override
 Callback to set stat parameters. More...
 
- Public Member Functions inherited from gem5::statistics::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 (statistics::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...
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

const AbstractMemorymem
 
statistics::Vector bytesRead
 Number of total bytes read from this memory. More...
 
statistics::Vector bytesInstRead
 Number of instruction bytes read from this memory. More...
 
statistics::Vector bytesWritten
 Number of bytes written to this memory. More...
 
statistics::Vector numReads
 Number of read requests. More...
 
statistics::Vector numWrites
 Number of write requests. More...
 
statistics::Vector numOther
 Number of other requests. More...
 
statistics::Formula bwRead
 Read bandwidth from this memory. More...
 
statistics::Formula bwInstRead
 Read bandwidth from this memory. More...
 
statistics::Formula bwWrite
 Write bandwidth from this memory. More...
 
statistics::Formula bwTotal
 Total bandwidth from this memory. More...
 

Detailed Description

Definition at line 173 of file abstract_mem.hh.

Constructor & Destructor Documentation

◆ MemStats()

gem5::memory::AbstractMemory::MemStats::MemStats ( AbstractMemory mem)

Definition at line 118 of file abstract_mem.cc.

Member Function Documentation

◆ regStats()

void gem5::memory::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 gem5::statistics::Group.

Definition at line 149 of file abstract_mem.cc.

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

Member Data Documentation

◆ bwInstRead

statistics::Formula gem5::memory::AbstractMemory::MemStats::bwInstRead

Read bandwidth from this memory.

Definition at line 196 of file abstract_mem.hh.

◆ bwRead

statistics::Formula gem5::memory::AbstractMemory::MemStats::bwRead

Read bandwidth from this memory.

Definition at line 194 of file abstract_mem.hh.

◆ bwTotal

statistics::Formula gem5::memory::AbstractMemory::MemStats::bwTotal

Total bandwidth from this memory.

Definition at line 200 of file abstract_mem.hh.

◆ bwWrite

statistics::Formula gem5::memory::AbstractMemory::MemStats::bwWrite

Write bandwidth from this memory.

Definition at line 198 of file abstract_mem.hh.

◆ bytesInstRead

statistics::Vector gem5::memory::AbstractMemory::MemStats::bytesInstRead

Number of instruction bytes read from this memory.

Definition at line 184 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().

◆ bytesRead

statistics::Vector gem5::memory::AbstractMemory::MemStats::bytesRead

Number of total bytes read from this memory.

Definition at line 182 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().

◆ bytesWritten

statistics::Vector gem5::memory::AbstractMemory::MemStats::bytesWritten

Number of bytes written to this memory.

Definition at line 186 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().

◆ mem

const AbstractMemory& gem5::memory::AbstractMemory::MemStats::mem

Definition at line 179 of file abstract_mem.hh.

◆ numOther

statistics::Vector gem5::memory::AbstractMemory::MemStats::numOther

Number of other requests.

Definition at line 192 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().

◆ numReads

statistics::Vector gem5::memory::AbstractMemory::MemStats::numReads

Number of read requests.

Definition at line 188 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().

◆ numWrites

statistics::Vector gem5::memory::AbstractMemory::MemStats::numWrites

Number of write requests.

Definition at line 190 of file abstract_mem.hh.

Referenced by gem5::memory::AbstractMemory::access().


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

Generated on Tue Sep 21 2021 12:31:27 for gem5 by doxygen 1.8.17