gem5
v21.0.0.0
|
Global CPU statistics that are merged into the Root object. More...
#include <base.hh>
Public Member Functions | |
GlobalStats (::Stats::Group *parent) | |
![]() | |
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... | |
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::Value | simInsts |
::Stats::Value | simOps |
::Stats::Formula | hostInstRate |
::Stats::Formula | hostOpRate |
BaseCPU::GlobalStats::GlobalStats | ( | ::Stats::Group * | parent | ) |
Definition at line 734 of file base.cc.
References Stats::ValueBase< Derived >::functor(), hostInstRate, hostOpRate, hostSeconds, BaseCPU::numSimulatedInsts(), BaseCPU::numSimulatedOps(), Stats::DataWrap< Derived, InfoProxyType >::precision(), Stats::DataWrap< Derived, InfoProxyType >::prereq(), simInsts, and simOps.
::Stats::Formula BaseCPU::GlobalStats::hostInstRate |
Definition at line 155 of file base.hh.
Referenced by GlobalStats().
::Stats::Formula BaseCPU::GlobalStats::hostOpRate |
Definition at line 156 of file base.hh.
Referenced by GlobalStats().
::Stats::Value BaseCPU::GlobalStats::simInsts |
Definition at line 152 of file base.hh.
Referenced by GlobalStats().
::Stats::Value BaseCPU::GlobalStats::simOps |
Definition at line 153 of file base.hh.
Referenced by GlobalStats().