gem5 v24.1.0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
gem5::BaseCPU::GlobalStats Struct Reference

Global CPU statistics that are merged into the Root object. More...

#include <base.hh>

Inheritance diagram for gem5::BaseCPU::GlobalStats:
gem5::statistics::Group

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 InforesolveStat (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 (const Group &)=delete
 
Groupoperator= (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
 

Detailed Description

Global CPU statistics that are merged into the Root object.

Definition at line 150 of file base.hh.

Constructor & Destructor Documentation

◆ GlobalStats()

gem5::BaseCPU::GlobalStats::GlobalStats ( statistics::Group parent)

Member Function Documentation

◆ numSimulatedInsts()

static Counter gem5::BaseCPU::GlobalStats::numSimulatedInsts ( )
inlinestatic

Definition at line 164 of file base.hh.

References gem5::BaseCPU::globalStats, and gem5::BaseCPU::totalNumSimulatedInsts().

Referenced by GlobalStats().

◆ numSimulatedOps()

static Counter gem5::BaseCPU::GlobalStats::numSimulatedOps ( )
inlinestatic

Definition at line 170 of file base.hh.

References gem5::BaseCPU::globalStats, and gem5::BaseCPU::totalNumSimulatedOps().

Referenced by GlobalStats().

◆ resetStats()

void gem5::BaseCPU::GlobalStats::resetStats ( )
inlineoverridevirtual

Member Data Documentation

◆ hostInstRate

statistics::Formula gem5::BaseCPU::GlobalStats::hostInstRate

Definition at line 157 of file base.hh.

Referenced by GlobalStats().

◆ hostOpRate

statistics::Formula gem5::BaseCPU::GlobalStats::hostOpRate

Definition at line 158 of file base.hh.

Referenced by GlobalStats().

◆ previousInsts

Counter gem5::BaseCPU::GlobalStats::previousInsts = 0

Definition at line 160 of file base.hh.

Referenced by resetStats().

◆ previousOps

Counter gem5::BaseCPU::GlobalStats::previousOps = 0

Definition at line 161 of file base.hh.

Referenced by resetStats().

◆ simInsts

statistics::Value gem5::BaseCPU::GlobalStats::simInsts

Definition at line 154 of file base.hh.

Referenced by GlobalStats().

◆ simOps

statistics::Value gem5::BaseCPU::GlobalStats::simOps

Definition at line 155 of file base.hh.

Referenced by GlobalStats().


The documentation for this struct was generated from the following files:

Generated on Mon Jan 13 2025 04:28:49 for gem5 by doxygen 1.9.8