|
gem5 [DEVELOP-FOR-25.0]
|
Global CPU statistics that are merged into the Root object. More...
#include <base.hh>
Public Member Functions | |
| GlobalStats (statistics::Group *parent) | |
| void | resetStats () override |
| Callback to reset stats. | |
Public Member Functions inherited from gem5::statistics::Group | |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. | |
| virtual | ~Group () |
| virtual void | regStats () |
| Callback to set stat parameters. | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. | |
| void | addStat (statistics::Info *info) |
| Register a stat with this group. | |
| 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. | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. | |
| const Info * | resolveStat (std::string name) const |
| Resolve a stat by its name within this group. | |
| void | mergeStatGroup (Group *block) |
| Merge the contents (stats & children) of a block to this block. | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Static Public Member Functions | |
| static Counter | numSimulatedInsts () |
| static Counter | numSimulatedOps () |
Public Attributes | |
| statistics::Value | simInsts |
| statistics::Value | simOps |
| statistics::Formula | hostInstRate |
| statistics::Formula | hostOpRate |
| Counter | previousInsts = 0 |
| Counter | previousOps = 0 |
| gem5::BaseCPU::GlobalStats::GlobalStats | ( | statistics::Group * | parent | ) |
Definition at line 848 of file base.cc.
References ADD_STAT, gem5::statistics::Group::Group(), hostInstRate, hostOpRate, gem5::hostSeconds, numSimulatedInsts(), numSimulatedOps(), simInsts, and simOps.
|
inlinestatic |
Definition at line 164 of file base.hh.
References gem5::BaseCPU::globalStats, and gem5::BaseCPU::totalNumSimulatedInsts().
Referenced by GlobalStats().
|
inlinestatic |
Definition at line 170 of file base.hh.
References gem5::BaseCPU::globalStats, and gem5::BaseCPU::totalNumSimulatedOps().
Referenced by GlobalStats().
|
inlineoverridevirtual |
Callback to reset stats.
Reimplemented from gem5::statistics::Group.
Definition at line 176 of file base.hh.
References previousInsts, previousOps, gem5::statistics::Group::resetStats(), gem5::BaseCPU::totalNumSimulatedInsts(), and gem5::BaseCPU::totalNumSimulatedOps().
| statistics::Formula gem5::BaseCPU::GlobalStats::hostInstRate |
Definition at line 157 of file base.hh.
Referenced by GlobalStats().
| statistics::Formula gem5::BaseCPU::GlobalStats::hostOpRate |
Definition at line 158 of file base.hh.
Referenced by GlobalStats().
| Counter gem5::BaseCPU::GlobalStats::previousInsts = 0 |
Definition at line 160 of file base.hh.
Referenced by resetStats().
| Counter gem5::BaseCPU::GlobalStats::previousOps = 0 |
Definition at line 161 of file base.hh.
Referenced by resetStats().
| statistics::Value gem5::BaseCPU::GlobalStats::simInsts |
Definition at line 154 of file base.hh.
Referenced by GlobalStats().
| statistics::Value gem5::BaseCPU::GlobalStats::simOps |
Definition at line 155 of file base.hh.
Referenced by GlobalStats().