gem5
v20.0.0.2
|
#include <base.hh>
Public Member Functions | |
CacheCmdStats (BaseCache &c, const std::string &name) | |
void | regStatsFromParent () |
Callback to register stats from parent CacheStats::regStats(). More... | |
![]() | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. More... | |
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 BaseCache & | cache |
Stats::Vector | hits |
Number of hits per thread for each type of command. More... | |
Stats::Vector | misses |
Number of misses per thread for each type of command. More... | |
Stats::Vector | missLatency |
Total number of cycles per thread/command spent waiting for a miss. More... | |
Stats::Formula | accesses |
The number of accesses per command and thread. More... | |
Stats::Formula | missRate |
The miss rate per command and thread. More... | |
Stats::Formula | avgMissLatency |
The average miss latency per command and thread. More... | |
Stats::Vector | mshr_hits |
Number of misses that hit in the MSHRs per command and thread. More... | |
Stats::Vector | mshr_misses |
Number of misses that miss in the MSHRs, per command and thread. More... | |
Stats::Vector | mshr_uncacheable |
Number of misses that miss in the MSHRs, per command and thread. More... | |
Stats::Vector | mshr_miss_latency |
Total cycle latency of each MSHR miss, per command and thread. More... | |
Stats::Vector | mshr_uncacheable_lat |
Total cycle latency of each MSHR miss, per command and thread. More... | |
Stats::Formula | mshrMissRate |
The miss rate in the MSHRs pre command and thread. More... | |
Stats::Formula | avgMshrMissLatency |
The average latency of an MSHR miss, per command and thread. More... | |
Stats::Formula | avgMshrUncacheableLatency |
The average latency of an MSHR miss, per command and thread. More... | |
BaseCache::CacheCmdStats::CacheCmdStats | ( | BaseCache & | c, |
const std::string & | name | ||
) |
void BaseCache::CacheCmdStats::regStatsFromParent | ( | ) |
Callback to register stats from parent CacheStats::regStats().
We can't use the normal flow since there is is no guaranteed order and CacheStats::regStats() needs to rely on these stats being initialised.
Definition at line 1865 of file base.cc.
References accesses, avgMissLatency, avgMshrMissLatency, avgMshrUncacheableLatency, cache, Stats::DataWrap< Derived, InfoProxyType >::flags(), System::getMasterName(), hits, ArmISA::i, Stats::VectorBase< Derived, Stor >::init(), System::maxMasters(), misses, missLatency, missRate, mshr_hits, mshr_miss_latency, mshr_misses, mshr_uncacheable, mshr_uncacheable_lat, mshrMissRate, Stats::nonan, Stats::nozero, Stats::Group::regStats(), Stats::DataWrapVec< Derived, InfoProxyType >::subname(), BaseCache::system, and Stats::total.
Stats::Formula BaseCache::CacheCmdStats::accesses |
The number of accesses per command and thread.
Definition at line 949 of file base.hh.
Referenced by regStatsFromParent().
Stats::Formula BaseCache::CacheCmdStats::avgMissLatency |
The average miss latency per command and thread.
Definition at line 953 of file base.hh.
Referenced by regStatsFromParent().
Stats::Formula BaseCache::CacheCmdStats::avgMshrMissLatency |
The average latency of an MSHR miss, per command and thread.
Definition at line 967 of file base.hh.
Referenced by regStatsFromParent().
Stats::Formula BaseCache::CacheCmdStats::avgMshrUncacheableLatency |
The average latency of an MSHR miss, per command and thread.
Definition at line 969 of file base.hh.
Referenced by regStatsFromParent().
const BaseCache& BaseCache::CacheCmdStats::cache |
Definition at line 935 of file base.hh.
Referenced by regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::hits |
Number of hits per thread for each type of command.
Definition at line 939 of file base.hh.
Referenced by regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::misses |
Number of misses per thread for each type of command.
Definition at line 942 of file base.hh.
Referenced by regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::missLatency |
Total number of cycles per thread/command spent waiting for a miss.
Used to calculate the average miss latency.
Definition at line 947 of file base.hh.
Referenced by regStatsFromParent(), NoncoherentCache::serviceMSHRTargets(), and Cache::serviceMSHRTargets().
Stats::Formula BaseCache::CacheCmdStats::missRate |
The miss rate per command and thread.
Definition at line 951 of file base.hh.
Referenced by regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::mshr_hits |
Number of misses that hit in the MSHRs per command and thread.
Definition at line 955 of file base.hh.
Referenced by BaseCache::handleTimingReqMiss(), and regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::mshr_miss_latency |
Total cycle latency of each MSHR miss, per command and thread.
Definition at line 961 of file base.hh.
Referenced by BaseCache::recvTimingResp(), and regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::mshr_misses |
Number of misses that miss in the MSHRs, per command and thread.
Definition at line 957 of file base.hh.
Referenced by BaseCache::getNextQueueEntry(), BaseCache::handleTimingReqMiss(), and regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::mshr_uncacheable |
Number of misses that miss in the MSHRs, per command and thread.
Definition at line 959 of file base.hh.
Referenced by Cache::handleTimingReqMiss(), and regStatsFromParent().
Stats::Vector BaseCache::CacheCmdStats::mshr_uncacheable_lat |
Total cycle latency of each MSHR miss, per command and thread.
Definition at line 963 of file base.hh.
Referenced by BaseCache::recvTimingResp(), and regStatsFromParent().
Stats::Formula BaseCache::CacheCmdStats::mshrMissRate |
The miss rate in the MSHRs pre command and thread.
Definition at line 965 of file base.hh.
Referenced by regStatsFromParent().