38#ifndef __BASE_STATS_GROUP_HH__
39#define __BASE_STATS_GROUP_HH__
75#define ADD_STAT(n, ...) n(this, #n, __VA_ARGS__)
std::vector< Group * > mergedStatGroups
std::map< std::string, Group * > statGroups
const Info * resolveStat(std::string name) const
Resolve a stat by its name within this group.
std::vector< Info * > stats
Group * mergedParent
Parent pointer if merged into parent.
void mergeStatGroup(Group *block)
Merge the contents (stats & children) of a block to this block.
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.
virtual void regStats()
Callback to set stat parameters.
void addStatGroup(const char *name, Group *block)
Add a stat block as a child of this block.
Group(const Group &)=delete
Group & operator=(const Group &)=delete
virtual void preDumpStats()
Callback before stats are dumped.
void addStat(statistics::Info *info)
Register a stat with this group.
virtual void resetStats()
Callback to reset stats.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const std::string & name()