125 .desc(
"Number of instructions simulated")
133 .desc(
"Number of ops (including micro ops) simulated")
140 .
desc(
"Number of seconds simulated")
146 .
desc(
"Frequency of simulated ticks")
152 .
desc(
"Number of ticks simulated")
158 .
desc(
"Number of ticks from beginning of simulation " 159 "(restored from checkpoints and never reset)")
163 .
name(
"host_inst_rate")
164 .
desc(
"Simulator instruction rate (inst/s)")
170 .
name(
"host_op_rate")
171 .
desc(
"Simulator op (including micro ops) rate (op/s)")
178 .
name(
"host_mem_usage")
179 .
desc(
"Number of bytes of host memory used")
185 .
name(
"host_seconds")
186 .
desc(
"Real time elapsed on the host")
191 .
name(
"host_tick_rate")
192 .
desc(
"Simulator tick rate (ticks/s)")
196 simSeconds = simTicks /
simFreq;
197 hostInstRate = simInsts / hostSeconds;
198 hostOpRate = simOps / hostSeconds;
199 hostTickRate = simTicks / hostSeconds;
223 dump(_dump), reset(_reset), repeat(_repeat)
264 if (dumpEvent != NULL && (period == 0 || dumpEvent->
scheduled())) {
292 if (dumpEvent != NULL &&
Global events and related declarations.
SimTicksReset simTicksReset
const char * description() const
Stats::Formula hostOpRate
void process()
virtual process function that is invoked when the callback queue is executed.
Overload hash function for BasicBlockRange type.
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.
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()