gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
gem5::memory::DRAMInterface::RankStats Struct Reference
Inheritance diagram for gem5::memory::DRAMInterface::RankStats:
gem5::statistics::Group

Public Member Functions

 RankStats (DRAMInterface &dram, Rank &rank)
 
void regStats () override
 Callback to set stat parameters. More...
 
void resetStats () override
 Callback to reset stats. More...
 
void preDumpStats () override
 Callback before stats are dumped. More...
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
 
virtual ~Group ()
 
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

Rankrank
 
statistics::Scalar actEnergy
 
statistics::Scalar preEnergy
 
statistics::Scalar readEnergy
 
statistics::Scalar writeEnergy
 
statistics::Scalar refreshEnergy
 
statistics::Scalar actBackEnergy
 
statistics::Scalar preBackEnergy
 
statistics::Scalar actPowerDownEnergy
 
statistics::Scalar prePowerDownEnergy
 
statistics::Scalar selfRefreshEnergy
 
statistics::Scalar totalEnergy
 
statistics::Scalar averagePower
 
statistics::Scalar totalIdleTime
 Stat to track total DRAM idle time. More...
 
statistics::Vector pwrStateTime
 Track time spent in each power state. More...
 

Detailed Description

Definition at line 163 of file dram_interface.hh.

Constructor & Destructor Documentation

◆ RankStats()

gem5::memory::DRAMInterface::RankStats::RankStats ( DRAMInterface dram,
Rank rank 
)

Definition at line 1962 of file dram_interface.cc.

Member Function Documentation

◆ preDumpStats()

void gem5::memory::DRAMInterface::RankStats::preDumpStats ( )
overridevirtual

Callback before stats are dumped.

This can be overridden by objects that need to perform calculations in addition to the capabiltiies implemented in the stat framework.

Reimplemented from gem5::statistics::Group.

Definition at line 2023 of file dram_interface.cc.

References gem5::statistics::Group::preDumpStats().

◆ regStats()

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

References gem5::statistics::Group::regStats().

◆ resetStats()

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

Callback to reset stats.

Reimplemented from gem5::statistics::Group.

Definition at line 2015 of file dram_interface.cc.

References gem5::statistics::Group::resetStats().

Member Data Documentation

◆ actBackEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::actBackEnergy

Definition at line 185 of file dram_interface.hh.

◆ actEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::actEnergy

Definition at line 176 of file dram_interface.hh.

◆ actPowerDownEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::actPowerDownEnergy

Definition at line 195 of file dram_interface.hh.

◆ averagePower

statistics::Scalar gem5::memory::DRAMInterface::RankStats::averagePower

Definition at line 208 of file dram_interface.hh.

◆ preBackEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::preBackEnergy

Definition at line 190 of file dram_interface.hh.

◆ preEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::preEnergy

Definition at line 177 of file dram_interface.hh.

◆ prePowerDownEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::prePowerDownEnergy

Definition at line 200 of file dram_interface.hh.

◆ pwrStateTime

statistics::Vector gem5::memory::DRAMInterface::RankStats::pwrStateTime

Track time spent in each power state.

Definition at line 219 of file dram_interface.hh.

◆ rank

Rank& gem5::memory::DRAMInterface::RankStats::rank

Definition at line 171 of file dram_interface.hh.

◆ readEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::readEnergy

Definition at line 178 of file dram_interface.hh.

◆ refreshEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::refreshEnergy

Definition at line 180 of file dram_interface.hh.

◆ selfRefreshEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::selfRefreshEnergy

Definition at line 205 of file dram_interface.hh.

◆ totalEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::totalEnergy

Definition at line 207 of file dram_interface.hh.

◆ totalIdleTime

statistics::Scalar gem5::memory::DRAMInterface::RankStats::totalIdleTime

Stat to track total DRAM idle time.

Definition at line 214 of file dram_interface.hh.

◆ writeEnergy

statistics::Scalar gem5::memory::DRAMInterface::RankStats::writeEnergy

Definition at line 179 of file dram_interface.hh.


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

Generated on Wed Dec 21 2022 10:24:15 for gem5 by doxygen 1.9.1