gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::statistics::DataWrap< Derived, InfoProxyType > Class Template Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::DataWrap< Derived, InfoProxyType >:
gem5::statistics::InfoAccess gem5::statistics::DataWrapVec< Derived, InfoProxyType > gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >

Public Types

typedef InfoProxyType< Derived > Info
 

Public Member Functions

const Infoinfo () const
 
 DataWrap ()=delete
 
 DataWrap (const DataWrap &)=delete
 
DataWrapoperator= (const DataWrap &)=delete
 
 DataWrap (Group *parent, const char *name, const units::Base *unit, const char *desc)
 
Derived & name (const std::string &name)
 Set the name and marks this stat to print at the end of simulation.
 
const std::string & name () const
 
Derived & setSeparator (const std::string &_sep)
 Set the character(s) used between the name and vector number on vectors, dist, etc.
 
const std::string & setSeparator () const
 
Derived & unit (const units::Base *_unit)
 Set the unit of the stat.
 
Derived & desc (const std::string &_desc)
 Set the description and marks this stat to print at the end of simulation.
 
Derived & precision (int _precision)
 Set the precision and marks this stat to print at the end of simulation.
 
Derived & flags (Flags _flags)
 Set the flags and marks this stat to print at the end of simulation.
 
template<class Stat >
Derived & prereq (const Stat &prereq)
 Set the prerequisite stat and marks this stat to print at the end of simulation.
 
- Public Member Functions inherited from gem5::statistics::InfoAccess
 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

Derived & self ()
 
Infoinfo ()
 
- Protected Member Functions inherited from gem5::statistics::InfoAccess
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.
 

Detailed Description

template<class Derived, template< class > class InfoProxyType>
class gem5::statistics::DataWrap< Derived, InfoProxyType >

Definition at line 227 of file statistics.hh.

Member Typedef Documentation

◆ Info

template<class Derived , template< class > class InfoProxyType>
typedef InfoProxyType<Derived> gem5::statistics::DataWrap< Derived, InfoProxyType >::Info

Definition at line 230 of file statistics.hh.

Constructor & Destructor Documentation

◆ DataWrap() [1/3]

template<class Derived , template< class > class InfoProxyType>
gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap ( )
delete

◆ DataWrap() [2/3]

template<class Derived , template< class > class InfoProxyType>
gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap ( const DataWrap< Derived, InfoProxyType > & )
delete

◆ DataWrap() [3/3]

Member Function Documentation

◆ desc()

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::desc ( const std::string & _desc)
inline

◆ flags()

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::flags ( Flags _flags)
inline

Set the flags and marks this stat to print at the end of simulation.

Parameters
fThe new flags.
Returns
A reference to this stat.

Definition at line 357 of file statistics.hh.

References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().

Referenced by gem5::branch_prediction::BPredUnit::BPredUnitStats::BPredUnitStats(), gem5::branch_prediction::BranchTargetBuffer::BranchTargetBufferStats::BranchTargetBufferStats(), gem5::ruby::CacheMemory::CacheMemoryStats::CacheMemoryStats(), gem5::BaseCPU::CommitCPUStats::CommitCPUStats(), gem5::o3::Commit::CommitStats::CommitStats(), gem5::ComputeUnit::ComputeUnitStats::ComputeUnitStats(), gem5::ruby::AbstractController::ControllerStats::ControllerStats(), gem5::CopyEngine::CopyEngineStats::CopyEngineStats(), gem5::BaseCPU::ExecuteCPUStats::ExecuteCPUStats(), gem5::o3::IEW::IEWStats::ExecutedInstStats::ExecutedInstStats(), gem5::minor::Fetch2::Fetch2Stats::Fetch2Stats(), gem5::BaseCPU::FetchCPUStats::FetchCPUStats(), gem5::o3::Fetch::FetchStatGroup::FetchStatGroup(), gem5::FlashDevice::FlashDeviceStats::FlashDeviceStats(), gem5::HDLcd::HDLcdStats::HDLcdStats(), gem5::ruby::HTMSequencer::HTMSequencer(), gem5::o3::IEW::IEWStats::IEWStats(), gem5::o3::InstructionQueue::IQIOStats::IQIOStats(), gem5::o3::InstructionQueue::IQStats::IQStats(), gem5::o3::LSQUnit::LSQUnitStats::LSQUnitStats(), gem5::MemFootprintProbe::MemFootprintProbeStats::MemFootprintProbeStats(), gem5::ruby::MessageBuffer::MessageBuffer(), gem5::CommMonitor::MonitorStats::MonitorStats(), gem5::ruby::Profiler::ProfilerStats::ProfilerStats(), gem5::BaseXBar::regStats(), gem5::ruby::garnet::GarnetNetwork::regStats(), gem5::ruby::garnet::Router::regStats(), gem5::ruby::Switch::regStats(), gem5::o3::Rename::RenameStats::RenameStats(), gem5::Shader::ShaderStats::ShaderStats(), gem5::SMMUv3BaseCache::SMMUv3BaseCacheStats::SMMUv3BaseCacheStats(), gem5::SMMUv3::SMMUv3Stats::SMMUv3Stats(), gem5::StackDistProbe::StackDistProbeStats::StackDistProbeStats(), gem5::prefetch::Base::StatGroup::StatGroup(), gem5::ArmISA::TableWalker::TableWalkerStats::TableWalkerStats(), gem5::ArmISA::TLB::TlbStats::TlbStats(), gem5::UFSHostDevice::UFSHostDeviceStats::UFSHostDeviceStats(), and gem5::WalkCache::WalkCacheStats::WalkCacheStats().

◆ info() [1/2]

◆ info() [2/2]

template<class Derived , template< class > class InfoProxyType>
const Info * gem5::statistics::DataWrap< Derived, InfoProxyType >::info ( ) const
inline

Definition at line 244 of file statistics.hh.

References gem5::statistics::InfoAccess::info(), and gem5::safe_cast().

◆ name() [1/2]

template<class Derived , template< class > class InfoProxyType>
const std::string & gem5::statistics::DataWrap< Derived, InfoProxyType >::name ( ) const
inline

◆ name() [2/2]

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::name ( const std::string & name)
inline

◆ operator=()

template<class Derived , template< class > class InfoProxyType>
DataWrap & gem5::statistics::DataWrap< Derived, InfoProxyType >::operator= ( const DataWrap< Derived, InfoProxyType > & )
delete

◆ precision()

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::precision ( int _precision)
inline

◆ prereq()

◆ self()

◆ setSeparator() [1/2]

template<class Derived , template< class > class InfoProxyType>
const std::string & gem5::statistics::DataWrap< Derived, InfoProxyType >::setSeparator ( ) const
inline

◆ setSeparator() [2/2]

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::setSeparator ( const std::string & _sep)
inline

Set the character(s) used between the name and vector number on vectors, dist, etc.

Parameters
_sepThe new separator string
Returns
A reference to this stat.

Definition at line 304 of file statistics.hh.

References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().

◆ unit()

template<class Derived , template< class > class InfoProxyType>
Derived & gem5::statistics::DataWrap< Derived, InfoProxyType >::unit ( const units::Base * _unit)
inline

Set the unit of the stat.

Parameters
unitThe new unit.
Returns
A reference to this stat.

Definition at line 320 of file statistics.hh.

References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().

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


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

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