gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::SimpleExecContext::ExecContextStats Struct Reference

#include <exec_context.hh>

Inheritance diagram for gem5::SimpleExecContext::ExecContextStats:
gem5::statistics::Group

Public Member Functions

 ExecContextStats (BaseSimpleCPU *cpu, SimpleThread *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 numMatAluAccesses
 
statistics::Scalar numCallsReturns
 
statistics::Scalar numMatInsts
 
statistics::Scalar numMatRegReads
 
statistics::Scalar numMatRegWrites
 
statistics::Formula numIdleCycles
 
statistics::Formula numBusyCycles
 
statistics::Average notIdleFraction
 
statistics::Formula idleFraction
 
std::array< statistics::Scalar *, CCRegClass+1 > numRegReads
 
std::array< statistics::Scalar *, CCRegClass+1 > numRegWrites
 
statistics::Scalar numPredictedBranches
 
statistics::Scalar numBranchMispred
 Number of misprediced branches.
 

Detailed Description

Definition at line 83 of file exec_context.hh.

Constructor & Destructor Documentation

◆ ExecContextStats()

Member Data Documentation

◆ idleFraction

statistics::Formula gem5::SimpleExecContext::ExecContextStats::idleFraction

Definition at line 159 of file exec_context.hh.

Referenced by ExecContextStats().

◆ notIdleFraction

statistics::Average gem5::SimpleExecContext::ExecContextStats::notIdleFraction

Definition at line 158 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numBranchMispred

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numBranchMispred

Number of misprediced branches.

Definition at line 165 of file exec_context.hh.

Referenced by gem5::BaseSimpleCPU::advancePC(), and ExecContextStats().

◆ numBusyCycles

statistics::Formula gem5::SimpleExecContext::ExecContextStats::numBusyCycles

Definition at line 155 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numCallsReturns

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numCallsReturns

Definition at line 142 of file exec_context.hh.

Referenced by gem5::BaseSimpleCPU::postExecute().

◆ numIdleCycles

statistics::Formula gem5::SimpleExecContext::ExecContextStats::numIdleCycles

Definition at line 152 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numMatAluAccesses

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numMatAluAccesses

Definition at line 139 of file exec_context.hh.

Referenced by gem5::BaseSimpleCPU::postExecute().

◆ numMatInsts

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numMatInsts

Definition at line 145 of file exec_context.hh.

Referenced by gem5::BaseSimpleCPU::postExecute().

◆ numMatRegReads

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numMatRegReads
mutable

Definition at line 148 of file exec_context.hh.

◆ numMatRegWrites

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numMatRegWrites

Definition at line 149 of file exec_context.hh.

◆ numPredictedBranches

statistics::Scalar gem5::SimpleExecContext::ExecContextStats::numPredictedBranches

Number of branches predicted as taken

Definition at line 163 of file exec_context.hh.

Referenced by ExecContextStats(), and gem5::BaseSimpleCPU::preExecute().

◆ numRegReads

std::array<statistics::Scalar *, CCRegClass + 1> gem5::SimpleExecContext::ExecContextStats::numRegReads

◆ numRegWrites

std::array<statistics::Scalar *, CCRegClass + 1> gem5::SimpleExecContext::ExecContextStats::numRegWrites

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

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