gem5  v21.2.1.1
Public Member Functions | Public Attributes | List of all members
gem5::PowerState::PowerStateStats Struct Reference

#include <power_state.hh>

Inheritance diagram for gem5::PowerState::PowerStateStats:

Public Member Functions

 PowerStateStats (PowerState &ps)
void regStats () override
 Callback to set stat parameters. More...
void preDumpStats () override
 Callback before stats are dumped. More...
- Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
virtual ~Group ()
virtual void resetStats ()
 Callback to reset stats. More...
void addStat (statistics::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 InforesolveStat (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
Groupoperator= (const Group &)=delete

Public Attributes

statistics::Scalar numTransitions
statistics::Scalar numPwrMatchStateTransitions
statistics::Distribution ticksClkGated
statistics::Vector pwrStateResidencyTicks
 Tracks the time spent in each of the power states. More...

Detailed Description

Definition at line 136 of file power_state.hh.

Constructor & Destructor Documentation

◆ PowerStateStats()

gem5::PowerState::PowerStateStats::PowerStateStats ( PowerState ps)

Definition at line 224 of file

Member Function Documentation

◆ preDumpStats()

void gem5::PowerState::PowerStateStats::preDumpStats ( )

Callback before stats are dumped.

This can be overridden by objects that need to perform calculations in addition to the capabiltiies implemented in the stat framework.

For every stats dump, the power state residency and other distribution stats should be computed just before the dump to ensure correct stats value being reported for current dump window. It avoids things like having any unreported time spent in a power state to be forwarded to the next dump window which might have rather unpleasant effects (like perturbing the distribution stats).

Reimplemented from gem5::statistics::Group.

Definition at line 270 of file

References gem5::statistics::Group::preDumpStats().

◆ regStats()

void gem5::PowerState::PowerStateStats::regStats ( )

Callback to set stat parameters.

This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.

Reimplemented from gem5::statistics::Group.

Definition at line 239 of file

References gem5::ArmISA::i, gem5::statistics::nonan, gem5::statistics::nozero, gem5::MipsISA::p, gem5::statistics::pdf, and gem5::statistics::Group::regStats().

Member Data Documentation

◆ numPwrMatchStateTransitions

statistics::Scalar gem5::PowerState::PowerStateStats::numPwrMatchStateTransitions

Definition at line 146 of file power_state.hh.

Referenced by gem5::PowerState::matchPwrState().

◆ numTransitions

statistics::Scalar gem5::PowerState::PowerStateStats::numTransitions

Definition at line 145 of file power_state.hh.

Referenced by gem5::PowerState::set().

◆ powerState

PowerState& gem5::PowerState::PowerStateStats::powerState

Definition at line 143 of file power_state.hh.

◆ pwrStateResidencyTicks

statistics::Vector gem5::PowerState::PowerStateStats::pwrStateResidencyTicks

Tracks the time spent in each of the power states.

Definition at line 149 of file power_state.hh.

Referenced by gem5::PowerState::computeStats(), and gem5::PowerState::getWeights().

◆ ticksClkGated

statistics::Distribution gem5::PowerState::PowerStateStats::ticksClkGated

Definition at line 147 of file power_state.hh.

Referenced by gem5::PowerState::computeStats().

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

Generated on Wed May 4 2022 12:14:43 for gem5 by doxygen 1.8.17