From: jihoonl Date: Mon, 11 Jan 2010 10:54:20 +0000 (+0000) Subject: -recoverystats flag X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3960a3964fc6fe4c17366675200842f39e35c65;p=IRC.git -recoverystats flag --- 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