46 #include "debug/Stats.hh" 52 : mergedParent(name ? nullptr : parent)
56 }
else if (parent && !name) {
76 so ? so->name() :
"?",
93 g.second->resetStats();
103 g.second->preDumpStats();
109 stats.push_back(info);
128 const std::map<std::string, Group *> &
const std::string & name()
const std::map< std::string, Group * > & getStatGroups() const
Get all child groups associated with this object.
std::map< std::string, Group * > statGroups
virtual void regStats()
Callback to set stat parameters.
const std::vector< Info * > & getStats() const
Get all stats associated with this object.
void mergeStatGroup(Group *block)
Merge the contents (stats & children) of a block to this block.
void addStat(Stats::Info *info)
Register a stat with this group.
virtual void preDumpStats()
Callback before stats are dumped.
virtual void resetStats()
Callback to reset stats.
std::vector< Group * > mergedStatGroups
Group *const mergedParent
Parent pointer if merged into parent.
static const int NumArgumentRegs M5_VAR_USED
void addStatGroup(const char *name, Group *block)
Add a stat block as a child of this block.
std::vector< Info * > stats
Abstract superclass for simulation objects.