Different from sim_ticks in that this value is restored from checkpoints and is never reset.
Useful for aligning with framebuffer output ticks
Stats::Formula simSeconds;
Stats::Value simTicks;
+Stats::Value finalTick;
Stats::Value simFreq;
namespace Stats {
return curTick() - startTick;
}
+Tick
+statFinalTick()
+{
+ return curTick();
+}
+
SimTicksReset simTicksReset;
struct Global
.desc("Number of ticks simulated")
;
+ finalTick
+ .functor(statFinalTick)
+ .name("final_tick")
+ .desc("Number of ticks from beginning of simulation \
+(restored from checkpoints and never reset)")
+ ;
+
hostInstRate
.name("host_inst_rate")
.desc("Simulator instruction rate (inst/s)")