gem5 v24.0.0.0
No Matches
gem5::statistics::InfoAccess Class Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::InfoAccess:
gem5::statistics::DataWrap< Average, ScalarInfoProxy > gem5::statistics::DataWrap< AverageDeviation, DistInfoProxy > gem5::statistics::DataWrap< AverageVector, VectorInfoProxy > gem5::statistics::DataWrap< Derived, DistInfoProxy > gem5::statistics::DataWrap< Distribution, DistInfoProxy > gem5::statistics::DataWrap< Formula, FormulaInfoProxy > gem5::statistics::DataWrap< Histogram, DistInfoProxy > gem5::statistics::DataWrap< Scalar, ScalarInfoProxy > gem5::statistics::DataWrap< Derived, ScalarInfoProxy > gem5::statistics::DataWrap< Derived, SparseHistInfoProxy > gem5::statistics::DataWrap< SparseHistogram, SparseHistInfoProxy > gem5::statistics::DataWrap< StandardDeviation, DistInfoProxy > gem5::statistics::DataWrap< Value, ScalarInfoProxy > gem5::statistics::DataWrap< Vector, VectorInfoProxy > gem5::statistics::DataWrap< Vector2d, Vector2dInfoProxy > gem5::statistics::DataWrap< Derived, Vector2dInfoProxy > gem5::statistics::DataWrap< VectorAverageDeviation, VectorDistInfoProxy > gem5::statistics::DataWrap< Derived, VectorInfoProxy > gem5::statistics::DataWrap< Derived, VectorDistInfoProxy > gem5::statistics::DataWrap< VectorDistribution, VectorDistInfoProxy > gem5::statistics::DataWrap< VectorStandardDeviation, VectorDistInfoProxy > gem5::statistics::DataWrap< Derived, InfoProxyType >

Public Member Functions

 InfoAccess ()
void reset ()
 Reset the stat to the default state.
bool zero () const
bool check () const
 Check that this stat has been set up properly and is ready for use.

Protected Member Functions

void setInfo (Group *parent, Info *info)
 Set up an info class for this statistic.
void setParams (const StorageParams *params)
 Save Storage class parameters if any.
void setInit ()
 Save Storage class parameters if any.
Infoinfo ()
 Grab the information class for this statistic.
const Infoinfo () const
 Grab the information class for this statistic.
bool newStyleStats () const
 Check if the info is new style stats.

Private Attributes


Detailed Description

Definition at line 182 of file statistics.hh.

Constructor & Destructor Documentation

◆ InfoAccess()

gem5::statistics::InfoAccess::InfoAccess ( )

Definition at line 204 of file statistics.hh.

Member Function Documentation

◆ check()

bool gem5::statistics::InfoAccess::check ( ) const

Check that this stat has been set up properly and is ready for use.

true for success

Definition at line 223 of file statistics.hh.

◆ info() [1/2]

Info * gem5::statistics::InfoAccess::info ( )

◆ info() [2/2]

const Info * gem5::statistics::InfoAccess::info ( ) const

Grab the information class for this statistic.

Definition at line 125 of file

References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().

◆ newStyleStats()

bool gem5::statistics::InfoAccess::newStyleStats ( ) const

◆ reset()

void gem5::statistics::InfoAccess::reset ( )

Reset the stat to the default state.

Definition at line 210 of file statistics.hh.

◆ setInfo()

void gem5::statistics::InfoAccess::setInfo ( Group * parent,
Info * info )

Set up an info class for this statistic.

Definition at line 75 of file

References _info, info(), panic_if, gem5::statistics::statsList(), and gem5::statistics::statsMap().

Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap().

◆ setInit()

◆ setParams()

◆ zero()

bool gem5::statistics::InfoAccess::zero ( ) const
true if this stat has a value and satisfies its requirement as a prereq

Definition at line 216 of file statistics.hh.

Member Data Documentation

◆ _info

Info* gem5::statistics::InfoAccess::_info

Definition at line 185 of file statistics.hh.

Referenced by info(), info(), newStyleStats(), and setInfo().

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

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