gem5  v21.1.0.2
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 406 of file mem_interface.hh.

Constructor & Destructor Documentation

◆ RankStats()

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

Definition at line 1971 of file mem_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 2032 of file mem_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 2009 of file mem_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 2024 of file mem_interface.cc.

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

Member Data Documentation

◆ actBackEnergy

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

Definition at line 428 of file mem_interface.hh.

◆ actEnergy

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

Definition at line 419 of file mem_interface.hh.

◆ actPowerDownEnergy

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

Definition at line 438 of file mem_interface.hh.

◆ averagePower

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

Definition at line 451 of file mem_interface.hh.

◆ preBackEnergy

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

Definition at line 433 of file mem_interface.hh.

◆ preEnergy

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

Definition at line 420 of file mem_interface.hh.

◆ prePowerDownEnergy

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

Definition at line 443 of file mem_interface.hh.

◆ pwrStateTime

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

Track time spent in each power state.

Definition at line 462 of file mem_interface.hh.

◆ rank

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

Definition at line 414 of file mem_interface.hh.

◆ readEnergy

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

Definition at line 421 of file mem_interface.hh.

◆ refreshEnergy

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

Definition at line 423 of file mem_interface.hh.

◆ selfRefreshEnergy

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

Definition at line 448 of file mem_interface.hh.

◆ totalEnergy

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

Definition at line 450 of file mem_interface.hh.

◆ totalIdleTime

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

Stat to track total DRAM idle time.

Definition at line 457 of file mem_interface.hh.

◆ writeEnergy

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

Definition at line 422 of file mem_interface.hh.


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