gem5 v24.0.0.0
|
#include <statistics.hh>
Public Types | |
typedef InfoProxyType< Derived > | Info |
Public Member Functions | |
const Info * | info () const |
DataWrap ()=delete | |
DataWrap (const DataWrap &)=delete | |
DataWrap & | operator= (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 () |
Info * | info () |
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. | |
Info * | info () |
Grab the information class for this statistic. | |
const Info * | info () const |
Grab the information class for this statistic. | |
bool | newStyleStats () const |
Check if the info is new style stats. | |
Definition at line 227 of file statistics.hh.
typedef InfoProxyType<Derived> gem5::statistics::DataWrap< Derived, InfoProxyType >::Info |
Definition at line 230 of file statistics.hh.
|
delete |
|
delete |
|
inline |
Definition at line 254 of file statistics.hh.
References gem5::statistics::Group::addStat(), gem5::csprintf(), gem5::statistics::DataWrap< Derived, InfoProxyType >::desc(), gem5::statistics::display, gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), gem5::statistics::InfoAccess::newStyleStats(), gem5::statistics::DataWrap< Derived, InfoProxyType >::self(), gem5::statistics::InfoAccess::setInfo(), gem5::statistics::DataWrap< Derived, InfoProxyType >::unit(), warn, and warn_once.
|
inline |
Set the description and marks this stat to print at the end of simulation.
desc | The new description. |
Definition at line 333 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(), gem5::ruby::Profiler::ProfilerStats::ProfilerStats(), gem5::Ticked::regStats(), gem5::VegaTLBCoalescer::regStats(), gem5::Shader::ShaderStats::ShaderStats(), and gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc().
|
inline |
Set the flags and marks this stat to print at the end of simulation.
f | The new flags. |
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().
|
inlineprotected |
Definition at line 237 of file statistics.hh.
References gem5::statistics::InfoAccess::info(), and gem5::safe_cast().
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap(), gem5::statistics::DataWrap< Derived, InfoProxyType >::desc(), gem5::statistics::DataWrap< Derived, InfoProxyType >::flags(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), gem5::statistics::DataWrap< Derived, InfoProxyType >::precision(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::prepare(), gem5::statistics::DataWrap< Derived, InfoProxyType >::prereq(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::reset(), gem5::statistics::DataWrap< Derived, InfoProxyType >::setSeparator(), gem5::statistics::DataWrap< Derived, InfoProxyType >::setSeparator(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname(), gem5::statistics::DataWrap< Derived, InfoProxyType >::unit(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), and gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubnames().
|
inline |
Definition at line 244 of file statistics.hh.
References gem5::statistics::InfoAccess::info(), and gem5::safe_cast().
|
inline |
Definition at line 295 of file statistics.hh.
References gem5::statistics::DataWrap< Derived, InfoProxyType >::info().
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), and gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname().
|
inline |
Set the name and marks this stat to print at the end of simulation.
name | The new name. |
Definition at line 288 of file statistics.hh.
References gem5::statistics::display, gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), gem5::statistics::InfoAccess::newStyleStats(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().
Referenced by gem5::ruby::Profiler::ProfilerStats::ProfilerStats(), gem5::ruby::garnet::GarnetNetwork::regStats(), gem5::ruby::garnet::Router::regStats(), gem5::Ticked::regStats(), gem5::VegaTLBCoalescer::regStats(), and gem5::Shader::ShaderStats::ShaderStats().
|
delete |
|
inline |
Set the precision and marks this stat to print at the end of simulation.
_precision | The new precision |
Definition at line 345 of file statistics.hh.
References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().
Referenced by gem5::BaseCPU::BaseCPUStats::BaseCPUStats(), gem5::branch_prediction::BPredUnit::BPredUnitStats::BPredUnitStats(), gem5::BaseCPU::CommitCPUStats::CommitCPUStats(), gem5::EtherDevice::EtherDeviceStats::EtherDeviceStats(), gem5::BaseCPU::GlobalStats::GlobalStats(), gem5::Root::RootStats::RootStats(), gem5::ruby::Throttle::ThrottleStats::ThrottleStats(), and gem5::TraceCPU::TraceStats::TraceStats().
|
inline |
Set the prerequisite stat and marks this stat to print at the end of simulation.
prereq | The prerequisite stat. |
Definition at line 371 of file statistics.hh.
References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().
Referenced by gem5::BaseCPU::CommitCPUStats::CommitCPUStats(), gem5::o3::Commit::CommitStats::CommitStats(), gem5::o3::CPU::CPUStats::CPUStats(), gem5::o3::Decode::DecodeStats::DecodeStats(), gem5::EtherDevice::EtherDeviceStats::EtherDeviceStats(), gem5::SimpleExecContext::ExecContextStats::ExecContextStats(), gem5::BaseCPU::ExecuteCPUStats::ExecuteCPUStats(), gem5::BaseCPU::FetchCPUStats::FetchCPUStats(), gem5::o3::Fetch::FetchStatGroup::FetchStatGroup(), gem5::BaseCPU::GlobalStats::GlobalStats(), gem5::o3::InstructionQueue::IQStats::IQStats(), gem5::minor::MinorStats::MinorStats(), gem5::o3::Rename::RenameStats::RenameStats(), and gem5::Root::RootStats::RootStats().
|
inlineprotected |
Definition at line 233 of file statistics.hh.
Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap(), gem5::statistics::DataWrap< Derived, InfoProxyType >::desc(), gem5::statistics::DataWrap< Derived, InfoProxyType >::flags(), gem5::statistics::DataWrap< Derived, InfoProxyType >::name(), gem5::statistics::DataWrap< Derived, InfoProxyType >::precision(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::prepare(), gem5::statistics::DataWrap< Derived, InfoProxyType >::prereq(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::reset(), gem5::statistics::DataWrap< Derived, InfoProxyType >::setSeparator(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subdesc(), gem5::statistics::DataWrapVec< Derived, InfoProxyType >::subname(), gem5::statistics::DataWrap< Derived, InfoProxyType >::unit(), gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubname(), and gem5::statistics::DataWrapVec2d< Derived, InfoProxyType >::ysubnames().
|
inline |
Definition at line 309 of file statistics.hh.
References gem5::statistics::DataWrap< Derived, InfoProxyType >::info().
|
inline |
Set the character(s) used between the name and vector number on vectors, dist, etc.
_sep | The new separator string |
Definition at line 304 of file statistics.hh.
References gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), and gem5::statistics::DataWrap< Derived, InfoProxyType >::self().
|
inline |
Set the unit of the stat.
unit | The new unit. |
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().