gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
Kernel::Statistics Class Reference

#include <kernel_stats.hh>

Inheritance diagram for Kernel::Statistics:
Serializable AlphaISA::Kernel::Statistics ArmISA::Kernel::Statistics MipsISA::Kernel::Statistics PowerISA::Kernel::Statistics RiscvISA::Kernel::Statistics SparcISA::Kernel::Statistics X86ISA::Kernel::Statistics

Public Member Functions

 Statistics (System *system)
 
virtual ~Statistics ()
 
const std::string name () const
 
void regStats (const std::string &name)
 
void arm ()
 
void quiesce ()
 
void swpipl (int ipl)
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Protected Attributes

std::string myname
 
Stats::Scalar _arm
 
Stats::Scalar _quiesce
 
Stats::Scalar _hwrei
 
Stats::Vector _iplCount
 
Stats::Vector _iplGood
 
Stats::Vector _iplTicks
 
Stats::Formula _iplUsed
 

Private Attributes

int iplLast
 
Tick iplLastTick
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

Definition at line 46 of file kernel_stats.hh.

Constructor & Destructor Documentation

Kernel::Statistics::Statistics ( System system)

Definition at line 44 of file kernel_stats.cc.

virtual Kernel::Statistics::~Statistics ( )
inlinevirtual

Definition at line 67 of file kernel_stats.hh.

Member Function Documentation

void Kernel::Statistics::arm ( )
inline

Definition at line 73 of file kernel_stats.hh.

References _arm.

const std::string Kernel::Statistics::name ( ) const
inline

Definition at line 69 of file kernel_stats.hh.

References myname.

void Kernel::Statistics::quiesce ( )
inline

Definition at line 74 of file kernel_stats.hh.

References _quiesce.

void Kernel::Statistics::regStats ( const std::string &  name)
void Kernel::Statistics::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 111 of file kernel_stats.cc.

References iplLast, iplLastTick, and SERIALIZE_SCALAR.

void Kernel::Statistics::swpipl ( int  ipl)

Definition at line 95 of file kernel_stats.cc.

References _iplCount, _iplGood, _iplTicks, curTick(), MipsISA::ipl, iplLast, and iplLastTick.

void Kernel::Statistics::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 118 of file kernel_stats.cc.

References iplLast, iplLastTick, and UNSERIALIZE_SCALAR.

Member Data Documentation

Stats::Scalar Kernel::Statistics::_arm
protected

Definition at line 52 of file kernel_stats.hh.

Referenced by arm().

Stats::Scalar Kernel::Statistics::_hwrei
protected

Definition at line 54 of file kernel_stats.hh.

Referenced by AlphaISA::Kernel::Statistics::hwrei().

Stats::Vector Kernel::Statistics::_iplCount
protected

Definition at line 56 of file kernel_stats.hh.

Referenced by swpipl().

Stats::Vector Kernel::Statistics::_iplGood
protected

Definition at line 57 of file kernel_stats.hh.

Referenced by swpipl().

Stats::Vector Kernel::Statistics::_iplTicks
protected

Definition at line 58 of file kernel_stats.hh.

Referenced by swpipl().

Stats::Formula Kernel::Statistics::_iplUsed
protected

Definition at line 59 of file kernel_stats.hh.

Stats::Scalar Kernel::Statistics::_quiesce
protected

Definition at line 53 of file kernel_stats.hh.

Referenced by quiesce().

int Kernel::Statistics::iplLast
private

Definition at line 62 of file kernel_stats.hh.

Referenced by serialize(), swpipl(), and unserialize().

Tick Kernel::Statistics::iplLastTick
private

Definition at line 63 of file kernel_stats.hh.

Referenced by serialize(), swpipl(), and unserialize().

std::string Kernel::Statistics::myname
protected

Definition at line 49 of file kernel_stats.hh.

Referenced by name().


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

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