gem5
v20.1.0.0
|
#include <abstract_mem.hh>
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 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 115 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 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.
Stats::Formula AbstractMemory::MemStats::bwInstRead |
Read bandwidth from this memory.
Definition at line 189 of file abstract_mem.hh.
Stats::Formula AbstractMemory::MemStats::bwRead |
Read bandwidth from this memory.
Definition at line 187 of file abstract_mem.hh.
Stats::Formula AbstractMemory::MemStats::bwTotal |
Total bandwidth from this memory.
Definition at line 193 of file abstract_mem.hh.
Stats::Formula AbstractMemory::MemStats::bwWrite |
Write bandwidth from this memory.
Definition at line 191 of file abstract_mem.hh.
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().
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().
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().
const AbstractMemory& AbstractMemory::MemStats::mem |
Definition at line 172 of file abstract_mem.hh.
Stats::Vector AbstractMemory::MemStats::numOther |
Number of other requests.
Definition at line 185 of file abstract_mem.hh.
Referenced by AbstractMemory::access().
Stats::Vector AbstractMemory::MemStats::numReads |
Number of read requests.
Definition at line 181 of file abstract_mem.hh.
Referenced by AbstractMemory::access().
Stats::Vector AbstractMemory::MemStats::numWrites |
Number of write requests.
Definition at line 183 of file abstract_mem.hh.
Referenced by AbstractMemory::access().