summaryrefslogtreecommitdiff
path: root/sim/stat_control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sim/stat_control.cc')
-rw-r--r--sim/stat_control.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/stat_control.cc b/sim/stat_control.cc
index 2f6e56b44..85c405b7f 100644
--- a/sim/stat_control.cc
+++ b/sim/stat_control.cc
@@ -61,6 +61,7 @@ namespace Stats {
Time statTime(true);
Tick startTick;
+Tick lastDump(0);
class SimTicksReset : public Callback
{
@@ -194,6 +195,11 @@ list<Output *> OutputList;
void
DumpNow()
{
+ assert(lastDump <= curTick);
+ if (lastDump == curTick)
+ return;
+ lastDump = curTick;
+
list<Output *>::iterator i = OutputList.begin();
list<Output *>::iterator end = OutputList.end();
for (; i != end; ++i) {