Adding timer for detailed replay
authorFilippo Gioachin <gioachin@bp-login1.(none)>
Mon, 19 Apr 2010 03:59:20 +0000 (22:59 -0500)
committerFilippo Gioachin <gioachin@bp-login1.(none)>
Mon, 19 Apr 2010 03:59:20 +0000 (22:59 -0500)
src/ck-core/ck.C

index c247c1feb7d73ab90007ca86345f2672634a27a5..67e2d9b085d3a7695b20f2bac173c4fc42eb7086 100644 (file)
@@ -2247,8 +2247,10 @@ class CkMessageDetailReplay : public CkMessageWatcher {
     return env;
   }
 public:
+  double starttime;
   CkMessageDetailReplay(FILE *f_) {
     f=f_;
+    starttime=CkWallTimer();
     /* This must match what CkMessageDetailRecorder did */
     CmiUInt2 little;
     fread(&little, 2, 1, f);
@@ -2276,7 +2278,8 @@ extern "C" void CkMessageReplayQuiescence(void *rep, double time) {
 }
 
 extern "C" void CkMessageDetailReplayDone(void *rep, double time) {
-  CkPrintf("[%d] Detailed replay finished. Exiting.\n",CkMyPe());
+  CkMessageDetailReplay *replay = (CkMessageDetailReplay *)rep;
+  CkPrintf("[%d] Detailed replay finished after %f seconds. Exiting.\n",CkWallTimer()-replay->starttime,CkMyPe());
   ConverseExit();
 }