|
gem5 v25.0.0.1
|
#include <pmu.hh>
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 Info * | resolveStat (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 | |
| Group & | operator= (const Group &)=delete |
Private Member Functions | |
| void | registerEvent (EventTypeId id, const char *stat_name) |
Private Attributes | |
| PMU * | pmu |
| std::unordered_map< EventTypeId, statistics::Scalar > | map |
| gem5::ArmISA::PMU::Stats::Stats | ( | PMU * | parent | ) |
Definition at line 874 of file pmu.cc.
References gem5::statistics::Group::Group(), gem5::SimObject::params(), gem5::ArmISA::PMU::PMU(), pmu, and gem5::X86ISA::val.
| void gem5::ArmISA::PMU::Stats::add | ( | EventTypeId | id, |
| uint64_t | value ) |
|
private |
Definition at line 884 of file pmu.cc.
References gem5::statistics::units::Count::get(), gem5::ArmISA::id, and map.
|
private |
Definition at line 695 of file pmu.hh.
Referenced by add(), and registerEvent().
|
private |