reduce projections call interferes log generation timing.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 15 Jun 2009 16:47:32 +0000 (16:47 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 15 Jun 2009 16:47:32 +0000 (16:47 +0000)
src/ck-perf/trace-bluegene.h

index 2c0a3eb38e42657cb456f2d86d7cc39ffe196cec..4560082e1be3f390f6b97c1174ffce10093a9830 100644 (file)
@@ -77,14 +77,14 @@ extern int traceBluegeneLinked;
 #define TRACE_BG_ADD_TAG(str)  _TRACE_BG_ONLY(CkpvAccess(_tracebg)->bgAddTag(str))
 
 # define TRACE_BG_AMPI_SUSPEND()     \
-        if(CpvAccess(traceOn)) traceSuspend();  \
-       _TRACE_BG_END_EXECUTE(1);
+       _TRACE_BG_END_EXECUTE(1); \
+        if(CpvAccess(traceOn)) traceSuspend();
 
 # define TRACE_BG_AMPI_START(t, str)  { \
         void* _bgParentLog = NULL;      \
         /*_TRACE_BG_TLINE_END(&_bgParentLog);*/ \
-        _TRACE_BG_BEGIN_EXECUTE_NOMSG(str, &_bgParentLog, 1);      \
         if(CpvAccess(traceOn) && t) CthTraceResume(t);  \
+        _TRACE_BG_BEGIN_EXECUTE_NOMSG(str, &_bgParentLog, 1);      \
         }
 
 # define TRACE_BG_AMPI_BREAK(t, str, event, count)     \