|
gem5 [DEVELOP-FOR-25.0]
|
#include <trace_cpu.hh>
Public Member Functions | |
| TraceStats (TraceCPU *trace) | |
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 |
Public Attributes | |
| statistics::Scalar | numSchedDcacheEvent |
| statistics::Scalar | numSchedIcacheEvent |
| statistics::Scalar | numOps |
| Stat for number of simulated micro-ops. | |
| statistics::Scalar | numCycles |
| Number of CPU cycles simulated. | |
| statistics::Formula | cpi |
| Stat for the CPI. | |
Definition at line 1092 of file trace_cpu.hh.
| gem5::TraceCPU::TraceStats::TraceStats | ( | TraceCPU * | trace | ) |
Definition at line 201 of file trace_cpu.cc.
References ADD_STAT, cpi, gem5::statistics::Group::Group(), numCycles, numOps, numSchedDcacheEvent, numSchedIcacheEvent, gem5::TraceCPU::TraceCPU(), and gem5::TraceCPU::traceStats.
| statistics::Formula gem5::TraceCPU::TraceStats::cpi |
Stat for the CPI.
This is really cycles per micro-op and not inst.
Definition at line 1104 of file trace_cpu.hh.
Referenced by TraceStats().
| statistics::Scalar gem5::TraceCPU::TraceStats::numCycles |
Number of CPU cycles simulated.
Definition at line 1101 of file trace_cpu.hh.
Referenced by TraceStats().
| statistics::Scalar gem5::TraceCPU::TraceStats::numOps |
Stat for number of simulated micro-ops.
Definition at line 1099 of file trace_cpu.hh.
Referenced by TraceStats().
| statistics::Scalar gem5::TraceCPU::TraceStats::numSchedDcacheEvent |
Definition at line 1095 of file trace_cpu.hh.
Referenced by TraceStats().
| statistics::Scalar gem5::TraceCPU::TraceStats::numSchedIcacheEvent |
Definition at line 1096 of file trace_cpu.hh.
Referenced by TraceStats().