gem5
v20.0.0.2
|
#include <abstract_mem.hh>
Public Member Functions | |
MemStats (AbstractMemory &mem) | |
void | regStats () override |
Callback to set stat parameters. More... | |
![]() | |
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 AbstractMemory & | mem |
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... | |
Definition at line 167 of file abstract_mem.hh.
AbstractMemory::MemStats::MemStats | ( | AbstractMemory & | mem | ) |
Definition at line 116 of file abstract_mem.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 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.
Stats::Formula AbstractMemory::MemStats::bwInstRead |
Read bandwidth from this memory.
Definition at line 189 of file abstract_mem.hh.
Referenced by regStats().
Stats::Formula AbstractMemory::MemStats::bwRead |
Read bandwidth from this memory.
Definition at line 187 of file abstract_mem.hh.
Referenced by regStats().
Stats::Formula AbstractMemory::MemStats::bwTotal |
Total bandwidth from this memory.
Definition at line 193 of file abstract_mem.hh.
Referenced by regStats().
Stats::Formula AbstractMemory::MemStats::bwWrite |
Write bandwidth from this memory.
Definition at line 191 of file abstract_mem.hh.
Referenced by regStats().
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().
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().
Stats::Vector AbstractMemory::MemStats::bytesWritten |
Number of bytes written to this memory.
Definition at line 179 of file abstract_mem.hh.
Referenced by regStats().
const AbstractMemory& AbstractMemory::MemStats::mem |
Definition at line 172 of file abstract_mem.hh.
Referenced by regStats().
Stats::Vector AbstractMemory::MemStats::numOther |
Stats::Vector AbstractMemory::MemStats::numReads |
Stats::Vector AbstractMemory::MemStats::numWrites |