gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::BaseCache::CacheCmdStats Struct Reference

#include <base.hh>

Inheritance diagram for gem5::BaseCache::CacheCmdStats:
gem5::statistics::Group

Public Member Functions

 CacheCmdStats (BaseCache &c, const std::string &name)
 
void regStatsFromParent ()
 Callback to register stats from parent CacheStats::regStats().
 
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters.
 
virtual void resetStats ()
 Callback to reset stats.
 
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

const BaseCachecache
 
statistics::Vector hits
 Number of hits per thread for each type of command.
 
statistics::Vector misses
 Number of misses per thread for each type of command.
 
statistics::Vector hitLatency
 Total number of ticks per thread/command spent waiting for a hit.
 
statistics::Vector missLatency
 Total number of ticks per thread/command spent waiting for a miss.
 
statistics::Formula accesses
 The number of accesses per command and thread.
 
statistics::Formula missRate
 The miss rate per command and thread.
 
statistics::Formula avgMissLatency
 The average miss latency per command and thread.
 
statistics::Vector mshrHits
 Number of misses that hit in the MSHRs per command and thread.
 
statistics::Vector mshrMisses
 Number of misses that miss in the MSHRs, per command and thread.
 
statistics::Vector mshrUncacheable
 Number of misses that miss in the MSHRs, per command and thread.
 
statistics::Vector mshrMissLatency
 Total tick latency of each MSHR miss, per command and thread.
 
statistics::Vector mshrUncacheableLatency
 Total tick latency of each MSHR miss, per command and thread.
 
statistics::Formula mshrMissRate
 The miss rate in the MSHRs pre command and thread.
 
statistics::Formula avgMshrMissLatency
 The average latency of an MSHR miss, per command and thread.
 
statistics::Formula avgMshrUncacheableLatency
 The average latency of an MSHR miss, per command and thread.
 

Detailed Description

Definition at line 994 of file base.hh.

Constructor & Destructor Documentation

◆ CacheCmdStats()

Member Function Documentation

◆ regStatsFromParent()

void gem5::BaseCache::CacheCmdStats::regStatsFromParent ( )

Member Data Documentation

◆ accesses

statistics::Formula gem5::BaseCache::CacheCmdStats::accesses

The number of accesses per command and thread.

Definition at line 1025 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ avgMissLatency

statistics::Formula gem5::BaseCache::CacheCmdStats::avgMissLatency

The average miss latency per command and thread.

Definition at line 1029 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ avgMshrMissLatency

statistics::Formula gem5::BaseCache::CacheCmdStats::avgMshrMissLatency

The average latency of an MSHR miss, per command and thread.

Definition at line 1043 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ avgMshrUncacheableLatency

statistics::Formula gem5::BaseCache::CacheCmdStats::avgMshrUncacheableLatency

The average latency of an MSHR miss, per command and thread.

Definition at line 1045 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ cache

const BaseCache& gem5::BaseCache::CacheCmdStats::cache

Definition at line 1006 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ hitLatency

statistics::Vector gem5::BaseCache::CacheCmdStats::hitLatency

Total number of ticks per thread/command spent waiting for a hit.

Used to calculate the average hit latency.

Definition at line 1018 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ hits

statistics::Vector gem5::BaseCache::CacheCmdStats::hits

Number of hits per thread for each type of command.

See also
Packet::Command

Definition at line 1010 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ misses

statistics::Vector gem5::BaseCache::CacheCmdStats::misses

Number of misses per thread for each type of command.

See also
Packet::Command

Definition at line 1013 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ missLatency

statistics::Vector gem5::BaseCache::CacheCmdStats::missLatency

Total number of ticks per thread/command spent waiting for a miss.

Used to calculate the average miss latency.

Definition at line 1023 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ missRate

statistics::Formula gem5::BaseCache::CacheCmdStats::missRate

The miss rate per command and thread.

Definition at line 1027 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrHits

statistics::Vector gem5::BaseCache::CacheCmdStats::mshrHits

Number of misses that hit in the MSHRs per command and thread.

Definition at line 1031 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrMisses

statistics::Vector gem5::BaseCache::CacheCmdStats::mshrMisses

Number of misses that miss in the MSHRs, per command and thread.

Definition at line 1033 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrMissLatency

statistics::Vector gem5::BaseCache::CacheCmdStats::mshrMissLatency

Total tick latency of each MSHR miss, per command and thread.

Definition at line 1037 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrMissRate

statistics::Formula gem5::BaseCache::CacheCmdStats::mshrMissRate

The miss rate in the MSHRs pre command and thread.

Definition at line 1041 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrUncacheable

statistics::Vector gem5::BaseCache::CacheCmdStats::mshrUncacheable

Number of misses that miss in the MSHRs, per command and thread.

Definition at line 1035 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().

◆ mshrUncacheableLatency

statistics::Vector gem5::BaseCache::CacheCmdStats::mshrUncacheableLatency

Total tick latency of each MSHR miss, per command and thread.

Definition at line 1039 of file base.hh.

Referenced by CacheCmdStats(), and regStatsFromParent().


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

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