Go to the documentation of this file.
114 .desc(
"Number of instructions simulated")
122 .desc(
"Number of ops (including micro ops) simulated")
129 .
desc(
"Number of seconds simulated")
135 .
desc(
"Frequency of simulated ticks")
141 .
desc(
"Number of ticks simulated")
147 .
desc(
"Number of ticks from beginning of simulation "
148 "(restored from checkpoints and never reset)")
152 .
name(
"host_inst_rate")
153 .
desc(
"Simulator instruction rate (inst/s)")
159 .
name(
"host_op_rate")
160 .
desc(
"Simulator op (including micro ops) rate (op/s)")
167 .
name(
"host_mem_usage")
168 .
desc(
"Number of bytes of host memory used")
174 .
name(
"host_seconds")
175 .
desc(
"Real time elapsed on the host")
180 .
name(
"host_tick_rate")
181 .
desc(
"Simulator tick rate (ticks/s)")
186 hostInstRate = simInsts / hostSeconds;
187 hostOpRate = simOps / hostSeconds;
188 hostTickRate =
simTicks / hostSeconds;
215 dump(_dump),
reset(_reset), repeat(_repeat)
Derived & scalar(T &value)
static int numSimulatedInsts()
void periodicStatDump(Tick period)
Schedule periodic statistics dumping.
Derived & functor(const T &func)
uint64_t Tick
Tick count type.
const char * description() const
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
void reschedule(Tick when)
Stats::Formula hostTickRate
Derived & prereq(const Stat &prereq)
Set the prerequisite stat and marks this stat to print at the end of simulation.
Stats::Formula simSeconds
void registerResetCallback(const std::function< void()> &callback)
Register a callback that should be called whenever statistics are reset.
void updateEvents()
Update the events after resuming from a checkpoint.
StatEvent(Tick _when, bool _dump, bool _reset, Tick _repeat)
Stats::Formula hostInstRate
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
void schedStatEvent(bool dump, bool reset, Tick when, Tick repeat)
Schedule statistics dumping.
void setTimer()
Use this to set time for the purposes of time measurement (use a monotonic clock if it is available.
Overload hash function for BasicBlockRange type.
Derived & precision(int _precision)
Set the precision and marks this stat to print at the end of simulation.
void dump()
Dump all statistics data to the registered outputs.
Event to dump and/or reset the statistics.
Tick simQuantum
Simulation Quantum for multiple eventq simulation.
static int numSimulatedOps()
uint64_t memUsage()
Determine the simulator process' total virtual memory usage.
Stats::Formula hostOpRate
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
The main global event class.
Tick curTick()
The current simulated tick.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17