gem5 [DEVELOP-FOR-25.1]
Loading...
Searching...
No Matches
gem5::ArmISA::PMU::Stats Struct Reference

#include <pmu.hh>

Inheritance diagram for gem5::ArmISA::PMU::Stats:
gem5::statistics::Group

Public Member Functions

 Stats (PMU *parent)
void add (EventTypeId id, uint64_t value)
 Increment the map[id] stat by value.
Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
virtual ~Group ()
virtual void regStats ()
 Callback to set stat parameters.
virtual void resetStats ()
 Callback to reset stats.
virtual void preDumpStats ()
 Callback before stats are dumped.
void addStat (statistics::Info *info)
 Register a stat with this group.
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object.
const std::vector< Info * > & getStats () const
 Get all stats associated with this object.
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block.
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group.
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block.
 Group ()=delete
 Group (const Group &)=delete
Groupoperator= (const Group &)=delete

Private Member Functions

void registerEvent (EventTypeId id, const char *stat_name)

Private Attributes

PMUpmu
std::unordered_map< EventTypeId, statistics::Scalarmap

Detailed Description

Definition at line 695 of file pmu.hh.

Constructor & Destructor Documentation

◆ Stats()

gem5::ArmISA::PMU::Stats::Stats ( PMU * parent)

Member Function Documentation

◆ add()

void gem5::ArmISA::PMU::Stats::add ( EventTypeId id,
uint64_t value )

Increment the map[id] stat by value.

Definition at line 914 of file pmu.cc.

References map, and panic.

◆ registerEvent()

void gem5::ArmISA::PMU::Stats::registerEvent ( EventTypeId id,
const char * stat_name )
private

Definition at line 901 of file pmu.cc.

References gem5::statistics::units::Count::get(), gem5::ArmISA::id, and map.

Member Data Documentation

◆ map

std::unordered_map<EventTypeId, statistics::Scalar> gem5::ArmISA::PMU::Stats::map
private

Definition at line 708 of file pmu.hh.

Referenced by add(), and registerEvent().

◆ pmu

PMU* gem5::ArmISA::PMU::Stats::pmu
private

Definition at line 707 of file pmu.hh.

Referenced by Stats().


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

Generated on Mon Oct 27 2025 04:13:17 for gem5 by doxygen 1.14.0