gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::memory::DRAMInterface::DRAMStats Struct Reference
Inheritance diagram for gem5::memory::DRAMInterface::DRAMStats:
gem5::statistics::Group

Public Member Functions

 DRAMStats (DRAMInterface &dram)
 
void regStats () override
 Callback to set stat parameters.
 
void resetStats () override
 Callback to reset stats.
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void preDumpStats ()
 Callback before stats are dumped.
 
void addStat (statistics::Info *info)
 Register a stat with this group.
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

DRAMInterfacedram
 
statistics::Scalar readBursts
 total number of DRAM bursts serviced
 
statistics::Scalar writeBursts
 
statistics::Vector perBankRdBursts
 DRAM per bank stats.
 
statistics::Vector perBankWrBursts
 
statistics::Scalar totQLat
 
statistics::Scalar totBusLat
 
statistics::Scalar totMemAccLat
 
statistics::Formula avgQLat
 
statistics::Formula avgBusLat
 
statistics::Formula avgMemAccLat
 
statistics::Scalar readRowHits
 
statistics::Scalar writeRowHits
 
statistics::Formula readRowHitRate
 
statistics::Formula writeRowHitRate
 
statistics::Histogram bytesPerActivate
 
statistics::Scalar dramBytesRead
 
statistics::Scalar dramBytesWritten
 
statistics::Formula avgRdBW
 
statistics::Formula avgWrBW
 
statistics::Formula peakBW
 
statistics::Formula busUtil
 
statistics::Formula busUtilRead
 
statistics::Formula busUtilWrite
 
statistics::Formula pageHitRate
 

Detailed Description

Definition at line 583 of file dram_interface.hh.

Constructor & Destructor Documentation

◆ DRAMStats()

Member Function Documentation

◆ regStats()

void gem5::memory::DRAMInterface::DRAMStats::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 1917 of file dram_interface.cc.

References avgBusLat, avgMemAccLat, avgQLat, avgRdBW, avgWrBW, busUtil, busUtilRead, busUtilWrite, bytesPerActivate, dram, dramBytesRead, dramBytesWritten, gem5::sim_clock::Frequency, gem5::statistics::nozero, pageHitRate, peakBW, perBankRdBursts, perBankWrBursts, readBursts, readRowHitRate, readRowHits, gem5::simSeconds, totBusLat, totMemAccLat, totQLat, writeBursts, writeRowHitRate, and writeRowHits.

◆ resetStats()

void gem5::memory::DRAMInterface::DRAMStats::resetStats ( )
overridevirtual

Callback to reset stats.

Reimplemented from gem5::statistics::Group.

Definition at line 1840 of file dram_interface.cc.

References gem5::curTick(), and dram.

Member Data Documentation

◆ avgBusLat

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::avgBusLat

Definition at line 607 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ avgMemAccLat

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::avgMemAccLat

Definition at line 608 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ avgQLat

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::avgQLat

Definition at line 606 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ avgRdBW

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::avgRdBW

Definition at line 621 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ avgWrBW

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::avgWrBW

Definition at line 622 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ busUtil

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::busUtil

Definition at line 625 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ busUtilRead

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::busUtilRead

Definition at line 626 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ busUtilWrite

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::busUtilWrite

Definition at line 627 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ bytesPerActivate

statistics::Histogram gem5::memory::DRAMInterface::DRAMStats::bytesPerActivate

Definition at line 615 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ dram

DRAMInterface& gem5::memory::DRAMInterface::DRAMStats::dram

Definition at line 590 of file dram_interface.hh.

Referenced by DRAMStats(), regStats(), and resetStats().

◆ dramBytesRead

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::dramBytesRead

Definition at line 617 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ dramBytesWritten

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::dramBytesWritten

Definition at line 618 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ pageHitRate

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::pageHitRate

Definition at line 628 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ peakBW

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::peakBW

Definition at line 623 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ perBankRdBursts

statistics::Vector gem5::memory::DRAMInterface::DRAMStats::perBankRdBursts

DRAM per bank stats.

Definition at line 597 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ perBankWrBursts

statistics::Vector gem5::memory::DRAMInterface::DRAMStats::perBankWrBursts

Definition at line 598 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ readBursts

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::readBursts

total number of DRAM bursts serviced

Definition at line 593 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ readRowHitRate

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::readRowHitRate

Definition at line 613 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ readRowHits

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::readRowHits

Definition at line 611 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ totBusLat

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::totBusLat

Definition at line 602 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ totMemAccLat

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::totMemAccLat

Definition at line 603 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ totQLat

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::totQLat

Definition at line 601 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ writeBursts

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::writeBursts

Definition at line 594 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ writeRowHitRate

statistics::Formula gem5::memory::DRAMInterface::DRAMStats::writeRowHitRate

Definition at line 614 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().

◆ writeRowHits

statistics::Scalar gem5::memory::DRAMInterface::DRAMStats::writeRowHits

Definition at line 612 of file dram_interface.hh.

Referenced by DRAMStats(), and regStats().


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

Generated on Mon May 26 2025 09:19:32 for gem5 by doxygen 1.13.2