gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ThreadState::ThreadStateStats Struct Reference

#include <thread_state.hh>

Inheritance diagram for gem5::ThreadState::ThreadStateStats:
gem5::statistics::Group

Public Member Functions

 ThreadStateStats (BaseCPU *cpu, const ThreadID &thread)
 
- 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 resetStats ()
 Callback to reset stats.
 
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 ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

statistics::Scalar numInsts
 Stat for number instructions committed.
 
statistics::Scalar numOps
 Stat for number ops (including micro ops) committed.
 
statistics::Scalar numMemRefs
 Stat for number of memory references.
 

Detailed Description

Definition at line 92 of file thread_state.hh.

Constructor & Destructor Documentation

◆ ThreadStateStats()

gem5::ThreadState::ThreadStateStats::ThreadStateStats ( BaseCPU * cpu,
const ThreadID & thread )

Definition at line 65 of file thread_state.cc.

Member Data Documentation

◆ numInsts

statistics::Scalar gem5::ThreadState::ThreadStateStats::numInsts

Stat for number instructions committed.

Definition at line 96 of file thread_state.hh.

Referenced by gem5::minor::Execute::doInstCommitAccounting().

◆ numMemRefs

statistics::Scalar gem5::ThreadState::ThreadStateStats::numMemRefs

Stat for number of memory references.

Definition at line 100 of file thread_state.hh.

◆ numOps

statistics::Scalar gem5::ThreadState::ThreadStateStats::numOps

Stat for number ops (including micro ops) committed.

Definition at line 98 of file thread_state.hh.

Referenced by gem5::minor::Execute::doInstCommitAccounting().


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

Generated on Tue Jun 18 2024 16:24:15 for gem5 by doxygen 1.11.0