gem5
v21.0.1.0
|
#include <root.hh>
Public Member Functions | |
void | resetStats () override |
Callback to reset stats. 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 | 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... | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Attributes | |
Stats::Formula | simSeconds |
Stats::Value | simTicks |
Stats::Value | finalTick |
Stats::Value | simFreq |
Stats::Value | hostSeconds |
Stats::Formula | hostTickRate |
Stats::Value | hostMemory |
Static Public Attributes | |
static RootStats | instance |
Private Member Functions | |
RootStats () | |
RootStats (const RootStats &)=delete | |
RootStats & | operator= (const RootStats &)=delete |
Private Attributes | |
Time | statTime |
Tick | startTick |
|
private |
Definition at line 55 of file root.cc.
References curTick(), finalTick, SimClock::Frequency, Stats::ValueBase< Derived >::functor(), hostMemory, hostSeconds, hostTickRate, memUsage(), Stats::DataWrap< Derived, InfoProxyType >::precision(), Stats::DataWrap< Derived, InfoProxyType >::prereq(), Stats::ValueBase< Derived >::scalar(), Time::setTimer(), simFreq, simSeconds, simTicks, startTick, and statTime.
|
privatedelete |
|
overridevirtual |
Callback to reset stats.
Reimplemented from Stats::Group.
Definition at line 98 of file root.cc.
References curTick(), and Stats::Group::resetStats().
Stats::Value Root::RootStats::finalTick |
Definition at line 100 of file root.hh.
Referenced by RootStats().
Stats::Value Root::RootStats::hostMemory |
Definition at line 105 of file root.hh.
Referenced by RootStats().
Stats::Value Root::RootStats::hostSeconds |
Definition at line 102 of file root.hh.
Referenced by RootStats().
Stats::Formula Root::RootStats::hostTickRate |
Definition at line 104 of file root.hh.
Referenced by RootStats().
|
static |
Stats::Value Root::RootStats::simFreq |
Definition at line 101 of file root.hh.
Referenced by RootStats().
Stats::Formula Root::RootStats::simSeconds |
Definition at line 98 of file root.hh.
Referenced by RootStats().
Stats::Value Root::RootStats::simTicks |
Definition at line 99 of file root.hh.
Referenced by RootStats().
|
private |
Definition at line 116 of file root.hh.
Referenced by RootStats().
|
private |
Definition at line 115 of file root.hh.
Referenced by RootStats().