gem5 v24.0.0.0
Loading...
Searching...
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

Info_info
 

Detailed Description

Definition at line 182 of file statistics.hh.

Constructor & Destructor Documentation

◆ InfoAccess()

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

Definition at line 204 of file statistics.hh.

Member Function Documentation

◆ check()

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

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

Returns
true for success

Definition at line 223 of file statistics.hh.

◆ info() [1/2]

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

◆ info() [2/2]

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

Grab the information class for this statistic.

Definition at line 125 of file statistics.cc.

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

◆ newStyleStats()

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

◆ reset()

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

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 )
protected

Set up an info class for this statistic.

Definition at line 75 of file statistics.cc.

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
inline
Returns
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
private

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