gem5
v20.1.0.0
|
TODO: It would be good if these stats were acquired after warmup. More...
#include <base.hh>
Public Member Functions | |
BaseTagStats (BaseTags &tags) | |
void | regStats () override |
Callback to set stat parameters. More... | |
void | preDumpStats () override |
Callback before stats are dumped. More... | |
Public Member Functions inherited from Stats::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | resetStats () |
Callback to reset stats. 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 | |
BaseTags & | tags |
Stats::Average | tagsInUse |
Per cycle average of the number of tags that hold valid data. More... | |
Stats::Scalar | totalRefs |
The total number of references to a block before it is replaced. More... | |
Stats::Scalar | sampledRefs |
The number of reference counts sampled. More... | |
Stats::Formula | avgRefs |
Average number of references to a block before is was replaced. More... | |
Stats::Scalar | warmupCycle |
The cycle that the warmup percentage was hit. More... | |
Stats::AverageVector | occupancies |
Average occupancy of each requestor using the cache. More... | |
Stats::Formula | avgOccs |
Average occ % of each requestor using the cache. More... | |
Stats::Vector | occupanciesTaskId |
Occupancy of each context/cpu using the cache. More... | |
Stats::Vector2d | ageTaskId |
Occupancy of each context/cpu using the cache. More... | |
Stats::Formula | percentOccsTaskId |
Occ % of each context/cpu using the cache. More... | |
Stats::Scalar | tagAccesses |
Number of tags consulted over all accesses. More... | |
Stats::Scalar | dataAccesses |
Number of data blocks consulted over all accesses. More... | |
TODO: It would be good if these stats were acquired after warmup.
|
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 Stats::Group.
Definition at line 273 of file base.cc.
References Stats::Group::preDumpStats().
|
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 Stats::Group.
Definition at line 232 of file base.cc.
References Stats::constant(), System::getRequestorName(), ArmISA::i, System::init(), System::maxRequestors(), Stats::nonan, Stats::nozero, ContextSwitchTaskId::NumTaskId, Stats::Group::regStats(), BaseTags::system, and Stats::total.
Stats::Vector2d BaseTags::BaseTagStats::ageTaskId |
Occupancy of each context/cpu using the cache.
Definition at line 146 of file base.hh.
Referenced by BaseTags::computeStats(), and BaseTags::computeStatsVisitor().
Stats::Formula BaseTags::BaseTagStats::avgOccs |
Stats::Formula BaseTags::BaseTagStats::avgRefs |
Stats::Scalar BaseTags::BaseTagStats::dataAccesses |
Number of data blocks consulted over all accesses.
Definition at line 154 of file base.hh.
Referenced by BaseSetAssoc::accessBlock(), SectorTags::accessBlock(), and BaseTags::insertBlock().
Stats::AverageVector BaseTags::BaseTagStats::occupancies |
Average occupancy of each requestor using the cache.
Definition at line 137 of file base.hh.
Referenced by BaseTags::insertBlock(), and BaseTags::invalidate().
Stats::Vector BaseTags::BaseTagStats::occupanciesTaskId |
Occupancy of each context/cpu using the cache.
Definition at line 143 of file base.hh.
Referenced by BaseTags::computeStats(), and BaseTags::computeStatsVisitor().
Stats::Formula BaseTags::BaseTagStats::percentOccsTaskId |
Stats::Scalar BaseTags::BaseTagStats::sampledRefs |
The number of reference counts sampled.
This is different from replacements because we sample all the valid blocks when the simulator exits.
Definition at line 125 of file base.hh.
Referenced by BaseTags::cleanupRefsVisitor(), and BaseTags::invalidate().
Stats::Scalar BaseTags::BaseTagStats::tagAccesses |
Number of tags consulted over all accesses.
Definition at line 152 of file base.hh.
Referenced by BaseSetAssoc::accessBlock(), SectorTags::accessBlock(), and BaseTags::insertBlock().
Stats::Average BaseTags::BaseTagStats::tagsInUse |
Per cycle average of the number of tags that hold valid data.
Definition at line 115 of file base.hh.
Referenced by SectorTags::insertBlock(), BaseSetAssoc::insertBlock(), FALRU::insertBlock(), BaseTags::insertBlock(), BaseSetAssoc::invalidate(), SectorTags::invalidate(), and FALRU::invalidate().
Stats::Scalar BaseTags::BaseTagStats::totalRefs |
The total number of references to a block before it is replaced.
Definition at line 118 of file base.hh.
Referenced by BaseTags::cleanupRefsVisitor(), and BaseTags::invalidate().
Stats::Scalar BaseTags::BaseTagStats::warmupCycle |
The cycle that the warmup percentage was hit.
0 on failure.
Definition at line 134 of file base.hh.
Referenced by BaseTags::insertBlock().