Merge branch 'charm' of charmgit:charm into charm
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 30 Mar 2011 14:49:10 +0000 (09:49 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 30 Mar 2011 14:49:10 +0000 (09:49 -0500)
src/arch/mpi/machine.c

index 430eb2bd2142b6cb67a292a929d34ddac82aab8a..eb28834011295f43d1db9de493b26972d50fe804 100644 (file)
@@ -654,7 +654,11 @@ void CmiReleaseSentMessages(void)
       msg_tmp = msg_tmp->next;
     }
 #if CMK_SMP_TRACE_COMMTHREAD || CMK_TRACE_COMMOVERHEAD
-    traceUserSuppliedBracketedNote("MPI_Test: release a msg", 60, startT, CmiWallTimer());
+    {
+    double endT = CmiWallTimer();
+    /* only record the event if it takes more than 1ms */
+    if(endT-startT>=0.001) traceUserSuppliedBracketedNote("MPI_Test: release a msg", 60, startT, endT);
+    }
 #endif
   }
   end_sent = prev;
@@ -742,7 +746,11 @@ int PumpMsgs(void)
 
     if(!flg) break;
 #if CMK_SMP_TRACE_COMMTHREAD || CMK_TRACE_COMMOVERHEAD
-    traceUserSuppliedBracketedNote("MPI_Iprobe before a recv call", 70, startT, CmiWallTimer());
+    {
+    double endT = CmiWallTimer();
+    /* only trace the probe that last longer than 1ms */
+    if(endT-startT>=0.001) traceUserSuppliedBracketedNote("MPI_Iprobe before a recv call", 70, startT, endT);
+    }
 #endif
 
     recd = 1;