gem5
|
Implementation of a distribution stat. More...
#include <statistics.hh>
Public Types | |
typedef DistInfoProxy< Derived > | Info |
typedef Stor | Storage |
typedef Stor::Params | Params |
Public Types inherited from Stats::DataWrap< Derived, DistInfoProxy > | |
typedef DistInfoProxy< Derived > | Info |
Public Member Functions | |
DistBase () | |
template<typename U > | |
void | sample (const U &v, int n=1) |
Add a value to the distribtion n times. More... | |
size_type | size () const |
Return the number of entries in this stat. More... | |
bool | zero () const |
Return true if no samples have been added. More... | |
void | prepare () |
void | reset () |
Reset stat value to default. More... | |
void | add (DistBase &d) |
Add the argument distribution to the this distribution. More... | |
Public Member Functions inherited from Stats::DataWrap< Derived, DistInfoProxy > | |
const Info * | info () 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... | |
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 | |
char storage[sizeof(Storage)] | __attribute__ ((aligned(8))) |
The storage for this stat. More... | |
Storage * | data () |
Retrieve the storage. More... | |
const Storage * | data () const |
Retrieve a const pointer to the storage. More... | |
void | doInit () |
Protected Member Functions inherited from Stats::DataWrap< Derived, DistInfoProxy > | |
Derived & | self () |
Info * | info () |
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... | |
Info * | info () |
Grab the information class for this statistic. More... | |
const Info * | info () const |
Grab the information class for this statistic. More... | |
Implementation of a distribution stat.
The type of distribution is determined by the Storage template.
Definition at line 1820 of file statistics.hh.
typedef DistInfoProxy<Derived> Stats::DistBase< Derived, Stor >::Info |
Definition at line 1823 of file statistics.hh.
typedef Stor::Params Stats::DistBase< Derived, Stor >::Params |
Definition at line 1825 of file statistics.hh.
typedef Stor Stats::DistBase< Derived, Stor >::Storage |
Definition at line 1824 of file statistics.hh.
|
inline |
Definition at line 1860 of file statistics.hh.
|
protected |
The storage for this stat.
|
inline |
Add the argument distribution to the this distribution.
Definition at line 1901 of file statistics.hh.
Referenced by Profiler::collateStats().
|
inlineprotected |
Retrieve the storage.
Definition at line 1837 of file statistics.hh.
Referenced by Stats::DistBase< Distribution, DistStor >::add(), Stats::DistBase< Distribution, DistStor >::prepare(), Stats::DistBase< Distribution, DistStor >::reset(), Stats::DistBase< Distribution, DistStor >::sample(), Stats::DistBase< Distribution, DistStor >::size(), and Stats::DistBase< Distribution, DistStor >::zero().
|
inlineprotected |
Retrieve a const pointer to the storage.
Definition at line 1847 of file statistics.hh.
|
inlineprotected |
Definition at line 1853 of file statistics.hh.
|
inline |
Definition at line 1883 of file statistics.hh.
|
inline |
Reset stat value to default.
Definition at line 1893 of file statistics.hh.
Referenced by Sequencer::resetStats(), AbstractController::resetStats(), and GPUCoalescer::resetStats().
|
inline |
Add a value to the distribtion n times.
Calls sample on the storage class.
v | The value to add. |
n | The number of times to add it, defaults to 1. |
Definition at line 1869 of file statistics.hh.
Referenced by FlashDevice::accessDevice(), ExecStage::collectStatistics(), ClockedObject::computeStats(), ArmISA::TableWalker::doL1DescriptorWrapper(), ArmISA::TableWalker::doL2DescriptorWrapper(), ArmISA::TableWalker::doLongDescriptorWrapper(), Wavefront::exec(), UFSHostDevice::finalUTP(), CoherentXBar::forwardAtomic(), CoherentXBar::forwardTiming(), StackDistProbe::handleRequest(), Sequencer::insertRequest(), GPUCoalescer::insertRequest(), ArmISA::TableWalker::pendingChange(), DRAMCtrl::prechargeBank(), FetchStage::processFetchReturn(), DRAMCtrl::processNextReqEvent(), LdsState::processPacket(), ArmISA::TableWalker::processWalk(), ArmISA::TableWalker::processWalkAArch64(), ArmISA::TableWalker::processWalkLPAE(), ArmISA::TableWalker::processWalkWrapper(), AbstractController::profileMsgDelay(), Sequencer::recordMissLatency(), GPUCoalescer::recordMissLatency(), CommMonitor::samplePeriodic(), CommMonitor::MonitorStats::updateReqStats(), GPUDynInst::updateStats(), and UFSHostDevice::write().
|
inline |
Return the number of entries in this stat.
Definition at line 1875 of file statistics.hh.
|
inline |
Return true if no samples have been added.
Definition at line 1880 of file statistics.hh.