gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
Stats::DataWrap< Derived, InfoProxyType > Class Template Reference

#include <statistics.hh>

Inheritance diagram for Stats::DataWrap< Derived, InfoProxyType >:
Stats::InfoAccess Stats::DataWrapVec< Derived, InfoProxyType > Stats::DataWrapVec2d< Derived, InfoProxyType > Stats::Vector2dBase< Derived, Stor >

Public Types

typedef InfoProxyType< Derived > Info
 

Public Member Functions

const Infoinfo () const
 
 DataWrap ()
 
Derived & name (const std::string &name)
 Set the name and marks this stat to print at the end of simulation. More...
 
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. More...
 
const std::string & setSeparator () const
 
Derived & desc (const std::string &_desc)
 Set the description and marks this stat to print at the end of simulation. More...
 
Derived & precision (int _precision)
 Set the precision and marks this stat to print at the end of simulation. More...
 
Derived & flags (Flags _flags)
 Set the flags and marks this stat to print at the end of simulation. More...
 
template<class Stat >
Derived & prereq (const Stat &prereq)
 Set the prerequisite stat and marks this stat to print at the end of simulation. More...
 
- Public Member Functions inherited from Stats::InfoAccess
void reset ()
 Reset the stat to the default state. More...
 
bool zero () const
 
bool check () const
 Check that this stat has been set up properly and is ready for use. More...
 

Protected Member Functions

Derived & self ()
 
Infoinfo ()
 
 DataWrap (const DataWrap &stat)
 Copy constructor, copies are not allowed. More...
 
void operator= (const DataWrap &)
 Can't copy stats. More...
 
- Protected Member Functions inherited from Stats::InfoAccess
void setInfo (Info *info)
 Set up an info class for this statistic. More...
 
void setParams (const StorageParams *params)
 Save Storage class parameters if any. More...
 
void setInit ()
 Save Storage class parameters if any. More...
 
Infoinfo ()
 Grab the information class for this statistic. More...
 
const Infoinfo () const
 Grab the information class for this statistic. More...
 

Detailed Description

template<class Derived, template< class > class InfoProxyType>
class Stats::DataWrap< Derived, InfoProxyType >

Definition at line 209 of file statistics.hh.

Member Typedef Documentation

template<class Derived, template< class > class InfoProxyType>
typedef InfoProxyType<Derived> Stats::DataWrap< Derived, InfoProxyType >::Info

Definition at line 212 of file statistics.hh.

Constructor & Destructor Documentation

template<class Derived, template< class > class InfoProxyType>
Stats::DataWrap< Derived, InfoProxyType >::DataWrap ( const DataWrap< Derived, InfoProxyType > &  stat)
inlineprotected

Copy constructor, copies are not allowed.

Definition at line 235 of file statistics.hh.

template<class Derived, template< class > class InfoProxyType>
Stats::DataWrap< Derived, InfoProxyType >::DataWrap ( )
inline

Definition at line 243 of file statistics.hh.

Member Function Documentation

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

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

Parameters
descThe new description.
Returns
A reference to this stat.

Definition at line 287 of file statistics.hh.

Referenced by Stats::Global::Global(), GpuDispatcher::GpuDispatcher(), StackDistProbe::regStats(), MemFootprintProbe::regStats(), FetchStage::regStats(), Sequencer::regStats(), EtherDevice::regStats(), Profiler::regStats(), MemTest::regStats(), ExecStage::regStats(), BPredUnit::regStats(), LocalMemPipeline::regStats(), CommMonitor::regStats(), BaseKvmCPU::regStats(), AbstractController::regStats(), Minor::MinorStats::regStats(), PowerModelState::regStats(), AlphaISA::TLB::regStats(), ThermalDomain::regStats(), GPUCoalescer::regStats(), Prefetcher::regStats(), RiscvISA::TLB::regStats(), MipsISA::TLB::regStats(), Process::regStats(), ClockDomain::regStats(), GlobalMemPipeline::regStats(), MessageBuffer::regStats(), QueuedPrefetcher::regStats(), CacheMemory::regStats(), Ticked::regStats(), VoltageDomain::regStats(), PowerModel::regStats(), BaseSimpleCPU::regStats(), BasePrefetcher::regStats(), TLBCoalescer::regStats(), FlashDevice::regStats(), BaseTags::regStats(), FALRU::regStats(), PowerISA::TLB::regStats(), ElasticTrace::regStats(), SnoopFilter::regStats(), CopyEngine::regStats(), X86ISA::GpuTLB::regStats(), TrafficGen::regStats(), ClockedObject::regStats(), IdeDisk::regStats(), Sinic::Device::regStats(), AbstractMemory::regStats(), Wavefront::regStats(), ArmISA::TLB::regStats(), ComputeUnit::regStats(), CoherentXBar::regStats(), BaseCache::regStats(), BaseXBar::regStats(), TraceCPU::FixedRetryGen::regStats(), ArmISA::TableWalker::regStats(), TraceCPU::ElasticDataGen::regStats(), UFSHostDevice::regStats(), DRAMCtrl::regStats(), TraceCPU::regStats(), and Stats::DataWrapVec< VectorStandardDeviation, VectorDistInfoProxy >::subdesc().

template<class Derived, template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::flags ( Flags  _flags)
inline
template<class Derived, template< class > class InfoProxyType>
Info* Stats::DataWrap< Derived, InfoProxyType >::info ( )
inlineprotected
template<class Derived, template< class > class InfoProxyType>
const Info* Stats::DataWrap< Derived, InfoProxyType >::info ( ) const
inline

Definition at line 226 of file statistics.hh.

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

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

Parameters
nameThe new name.
Returns
A reference to this stat.

Definition at line 254 of file statistics.hh.

Referenced by Stats::Global::Global(), GpuDispatcher::GpuDispatcher(), StackDistProbe::regStats(), MemFootprintProbe::regStats(), FetchStage::regStats(), Sequencer::regStats(), EtherDevice::regStats(), Profiler::regStats(), Switch::regStats(), MemTest::regStats(), ExecStage::regStats(), BPredUnit::regStats(), LocalMemPipeline::regStats(), Throttle::regStats(), CommMonitor::regStats(), AbstractController::regStats(), BaseKvmCPU::regStats(), Minor::MinorStats::regStats(), PowerModelState::regStats(), AlphaISA::TLB::regStats(), ThermalDomain::regStats(), Router::regStats(), GarnetNetwork::regStats(), GPUCoalescer::regStats(), RiscvISA::TLB::regStats(), Prefetcher::regStats(), MipsISA::TLB::regStats(), Process::regStats(), ClockDomain::regStats(), GlobalMemPipeline::regStats(), MessageBuffer::regStats(), QueuedPrefetcher::regStats(), CacheMemory::regStats(), Ticked::regStats(), VoltageDomain::regStats(), PowerModel::regStats(), BaseSimpleCPU::regStats(), BasePrefetcher::regStats(), TLBCoalescer::regStats(), FlashDevice::regStats(), BaseTags::regStats(), FALRU::regStats(), PowerISA::TLB::regStats(), ElasticTrace::regStats(), SnoopFilter::regStats(), CopyEngine::regStats(), X86ISA::GpuTLB::regStats(), TrafficGen::regStats(), ClockedObject::regStats(), IdeDisk::regStats(), Sinic::Device::regStats(), AbstractMemory::regStats(), Wavefront::regStats(), ArmISA::TLB::regStats(), ComputeUnit::regStats(), CoherentXBar::regStats(), BaseCache::regStats(), BaseXBar::regStats(), TraceCPU::FixedRetryGen::regStats(), ArmISA::TableWalker::regStats(), TraceCPU::ElasticDataGen::regStats(), UFSHostDevice::regStats(), DRAMCtrl::regStats(), and TraceCPU::regStats().

template<class Derived, template< class > class InfoProxyType>
const std::string& Stats::DataWrap< Derived, InfoProxyType >::name ( ) const
inline
template<class Derived, template< class > class InfoProxyType>
void Stats::DataWrap< Derived, InfoProxyType >::operator= ( const DataWrap< Derived, InfoProxyType > &  )
inlineprotected

Can't copy stats.

Definition at line 240 of file statistics.hh.

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

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

Parameters
_precisionThe new precision
Returns
A reference to this stat.

Definition at line 299 of file statistics.hh.

Referenced by Stats::Global::Global(), EtherDevice::regStats(), BPredUnit::regStats(), Minor::MinorStats::regStats(), AbstractMemory::regStats(), DRAMCtrl::regStats(), and TraceCPU::regStats().

template<class Derived, template< class > class InfoProxyType>
template<class Stat >
Derived& Stats::DataWrap< Derived, InfoProxyType >::prereq ( const Stat &  prereq)
inline

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

Parameters
prereqThe prerequisite stat.
Returns
A reference to this stat.

Definition at line 325 of file statistics.hh.

Referenced by Stats::Global::Global(), EtherDevice::regStats(), Minor::MinorStats::regStats(), BaseSimpleCPU::regStats(), and AbstractMemory::regStats().

template<class Derived, template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::self ( )
inlineprotected

Definition at line 215 of file statistics.hh.

template<class Derived, template< class > class InfoProxyType>
Derived& Stats::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 270 of file statistics.hh.

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

Definition at line 275 of file statistics.hh.


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

Generated on Fri Jun 9 2017 13:04:38 for gem5 by doxygen 1.8.6