From d3960a3964fc6fe4c17366675200842f39e35c65 Mon Sep 17 00:00:00 2001 From: jihoonl Date: Mon, 11 Jan 2010 10:54:20 +0000 Subject: [PATCH] -recoverystats flag --- Robust/src/IR/Flat/BuildCode.java | 21 +++++++++++++++++++++ Robust/src/IR/State.java | 3 +++ 2 files changed, 24 insertions(+) diff --git a/Robust/src/IR/Flat/BuildCode.java b/Robust/src/IR/Flat/BuildCode.java index 2655bb7e..14a6fe39 100644 --- a/Robust/src/IR/Flat/BuildCode.java +++ b/Robust/src/IR/Flat/BuildCode.java @@ -410,6 +410,19 @@ public class BuildCode { outmethod.println("#endif\n"); } + if(state.DSMRECOVERYSTATS) { + outmethod.println("#ifdef RECOVERYSTATS\n"); + outmethod.println("printf(\"***** Recovery Stats *****\\n\");"); + outmethod.println("printf(\"numRecovery = %d\\n\",numRecovery)"); + outmethod.println("int nRecovery=0;"); + outmethod.println("for(nRecovery=0;nRecovery