128 .desc(
"Number of instructions simulated")
136 .desc(
"Number of ops (including micro ops) simulated")
143 .
desc(
"Number of seconds simulated")
149 .
desc(
"Frequency of simulated ticks")
155 .
desc(
"Number of ticks simulated")
161 .
desc(
"Number of ticks from beginning of simulation "
162 "(restored from checkpoints and never reset)")
166 .
name(
"host_inst_rate")
167 .
desc(
"Simulator instruction rate (inst/s)")
173 .
name(
"host_op_rate")
174 .
desc(
"Simulator op (including micro ops) rate (op/s)")
181 .
name(
"host_mem_usage")
182 .
desc(
"Number of bytes of host memory used")
188 .
name(
"host_seconds")
189 .
desc(
"Real time elapsed on the host")
194 .
name(
"host_tick_rate")
195 .
desc(
"Simulator tick rate (ticks/s)")
200 hostInstRate = simInsts / hostSeconds;
201 hostOpRate = simOps / hostSeconds;
202 hostTickRate =
simTicks / hostSeconds;
226 dump(_dump),
reset(_reset), repeat(_repeat)
Global events and related declarations.
SimTicksReset simTicksReset
Stats::Formula hostOpRate
void process()
virtual process function that is invoked when the callback queue is executed.
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
Derived & scalar(T &value)
Declaration of Statistics objects.
Stats::Formula simSeconds
static int numSimulatedOps()
uint64_t memUsage()
Determine the simulator process' total virtual memory usage.
Tick curTick()
The current simulated tick.
Stats::Formula hostInstRate
uint64_t Tick
Tick count type.
Derived & prereq(const Stat &prereq)
Set the prerequisite stat and marks this stat to print at the end of simulation.
void registerResetCallback(Callback *cb)
Register a callback that should be called whenever statistics are reset.
StatEvent(Tick _when, bool _dump, bool _reset, Tick _repeat)
Stats::Formula hostTickRate
Derived & precision(int _precision)
Set the precision and marks this stat to print at the end of simulation.
void periodicStatDump(Tick period)
Schedule periodic statistics dumping.
Derived & name(const std::string &name)
Set the name and marks this stat to print at the end of simulation.
The main global event class.
void reschedule(Tick when)
void updateEvents()
Update the events after resuming from a checkpoint.
const char * description() const
void schedStatEvent(bool dump, bool reset, Tick when, Tick repeat)
Schedule statistics dumping.
Derived & desc(const std::string &_desc)
Set the description and marks this stat to print at the end of simulation.
void setTimer()
Use this to set time for the purposes of time measurement (use a monotonic clock if it is available...
void dump()
Dump all statistics data to the registered outputs.
Derived & functor(T &func)
Tick simQuantum
Simulation Quantum for multiple eventq simulation.
Event to dump and/or reset the statistics.
static int numSimulatedInsts()