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

#include <kernel_stats.hh>

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

Public Member Functions

virtual ~Statistics ()
 
const std::string name () const
 
virtual void regStats (const std::string &name)
 
void arm ()
 
void quiesce ()
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Gets the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 

Detailed Description

Definition at line 40 of file kernel_stats.hh.

Constructor & Destructor Documentation

◆ ~Statistics()

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

Definition at line 50 of file kernel_stats.hh.

Member Function Documentation

◆ arm()

void Kernel::Statistics::arm ( )
inline

Definition at line 56 of file kernel_stats.hh.

Referenced by PseudoInst::arm().

◆ name()

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

Definition at line 52 of file kernel_stats.hh.

References myname, and regStats().

◆ quiesce()

void Kernel::Statistics::quiesce ( )
inline

◆ regStats()

void Kernel::Statistics::regStats ( const std::string &  name)
virtual

Definition at line 42 of file kernel_stats.cc.

References name().

Referenced by name(), and SimpleThread::regStats().

◆ serialize()

void Kernel::Statistics::serialize ( CheckpointOut cp) const
inlineoverridevirtual

Serialize an object.

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

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 60 of file kernel_stats.hh.

Referenced by ThreadState::serialize().

◆ unserialize()

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

Unserialize an object.

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

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 61 of file kernel_stats.hh.

Referenced by ThreadState::unserialize().

Member Data Documentation

◆ _arm

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

Definition at line 46 of file kernel_stats.hh.

◆ _quiesce

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

Definition at line 47 of file kernel_stats.hh.

◆ myname

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

Definition at line 43 of file kernel_stats.hh.

Referenced by name().


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

Generated on Mon Jun 8 2020 15:45:58 for gem5 by doxygen 1.8.13