comment CmiMemoryUsage call due to heavy overhead
authorYanhua Sun <sun51@illinois.edu>
Sat, 21 Sep 2013 21:48:01 +0000 (16:48 -0500)
committerYanhua Sun <sun51@illinois.edu>
Sat, 21 Sep 2013 21:48:01 +0000 (16:48 -0500)
src/ck-tune/trace-perf.C

index a618d0713309930af24b456812f52be56d3ccc63..cb4ab5134a57d2c424660983f5b6a28be83b6f76 100644 (file)
@@ -145,20 +145,20 @@ void TraceAutoPerf::endExecute(void)
         totalEntryMethodInvocations ++;
         if(executionTime > maxEntryMethodTime)
             maxEntryMethodTime = executionTime;
-        double m = (double)CmiMemoryUsage();
-        if(memUsage < m){
-            memUsage = m;
-        }    
+        //double m = (double)CmiMemoryUsage();
+        //if(memUsage < m){
+        //    memUsage = m;
+        //}    
     }
 }
 
 void TraceAutoPerf::beginIdle(double curWallTime) {
     lastBeginIdle =  curWallTime; 
     lastEvent =  BEGIN_IDLE;
-    double m = (double)CmiMemoryUsage();
-    if(memUsage < m){
-        memUsage = m;
-    }
+    //double m = (double)CmiMemoryUsage();
+    //if(memUsage < m){
+    //    memUsage = m;
+    //}
 }
 
 void TraceAutoPerf::endIdle(double curWallTime) {
@@ -206,10 +206,10 @@ void TraceAutoPerf::endComputation(void) {
 
 void TraceAutoPerf::malloc(void *where, int size, void **stack, int stackSize)
 {
-    double m = (double)CmiMemoryUsage();
-    if(memUsage < m){
-        memUsage = m;
-    }
+    //double m = (double)CmiMemoryUsage();
+    //if(memUsage < m){
+    //    memUsage = m;
+    //}
 }
 
 void TraceAutoPerf::free(void *where, int size) { }