gem5 v24.0.0.0
|
#include <power_state.hh>
Public Member Functions | |
PowerStateStats (PowerState &ps) | |
void | regStats () override |
Callback to set stat parameters. | |
void | preDumpStats () override |
Callback before stats are dumped. | |
Public Member Functions inherited from gem5::statistics::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. | |
virtual | ~Group () |
virtual void | resetStats () |
Callback to reset stats. | |
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 |
Public Attributes | |
PowerState & | powerState |
statistics::Scalar | numTransitions |
statistics::Scalar | numPwrMatchStateTransitions |
statistics::Distribution | ticksClkGated |
statistics::Vector | pwrStateResidencyTicks |
Tracks the time spent in each of the power states. | |
Definition at line 136 of file power_state.hh.
gem5::PowerState::PowerStateStats::PowerStateStats | ( | PowerState & | ps | ) |
Definition at line 224 of file power_state.cc.
|
overridevirtual |
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 power_state.cc.
References gem5::statistics::Group::preDumpStats().
|
overridevirtual |
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 power_state.cc.
References gem5::ArmISA::i, gem5::statistics::nonan, gem5::statistics::nozero, gem5::MipsISA::p, gem5::statistics::pdf, and gem5::statistics::Group::regStats().
statistics::Scalar gem5::PowerState::PowerStateStats::numPwrMatchStateTransitions |
Definition at line 146 of file power_state.hh.
Referenced by gem5::PowerState::matchPwrState().
statistics::Scalar gem5::PowerState::PowerStateStats::numTransitions |
Definition at line 145 of file power_state.hh.
Referenced by gem5::PowerState::set().
PowerState& gem5::PowerState::PowerStateStats::powerState |
Definition at line 143 of file power_state.hh.
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().
statistics::Distribution gem5::PowerState::PowerStateStats::ticksClkGated |
Definition at line 147 of file power_state.hh.
Referenced by gem5::PowerState::computeStats().