memory profiler hack
authorbdemsky <bdemsky>
Wed, 27 Jul 2011 05:21:21 +0000 (05:21 +0000)
committerbdemsky <bdemsky>
Wed, 27 Jul 2011 05:21:21 +0000 (05:21 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.c
Robust/src/buildscript

index 039ca11e6c7235f5702955da70aa4d7bc5a6a916..3b3eca0a6d88856ce229985896b7265ecbd8c675 100644 (file)
@@ -13,6 +13,9 @@
 #ifdef PERFCOUNT
 #include "bme_perf_counter.h"
 #endif
+#ifdef MEMPERFCOUNT
+#include "memprof.h"
+#endif
 
 extern int classsize[];
 extern int typearray[];
index 0f2107ab35b7cd2920a83ba7a5fd64c99a150831..5e4ca12f7c6bb0bf1def994e382d8bacf698884e 100755 (executable)
@@ -88,6 +88,7 @@ echo -gccachecoherent turns on the cache coherence during gc
 echo
 echo Multicore GC options
 echo -perfcount performance counters
+echo -memperfcount Memory performance counters
 echo -multicoregc generate multi-core binary with garbage collection
 echo -pmc parallel collector
 echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
@@ -216,6 +217,7 @@ INTERRUPTFLAG=false
 THREADSIMULATEFLAG=false;
 MULTICOREGCFLAG=false;
 PERFCOUNT=false;
+MEMPERFCOUNT=false;
 PMCFLAG=false;
 GCMEMLOCALFLAG=false;
 GCMEMFIXEDFLAG=false;
@@ -534,6 +536,9 @@ JAVAOPTS="$JAVAOPTS -pmc"
 elif [[ $1 = '-perfcount' ]]
 then
 PERFCOUNT=true
+elif [[ $1 = '-memperfcount' ]]
+then
+MEMPERFCOUNT=true
 elif [[ $1 = '-gcmem_local' ]]
 then
 GCMEMLOCALFLAG=true
@@ -1137,6 +1142,11 @@ then #MULTICOREGC version
 TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
 fi
 
+if $MEMPERFCOUNT
+then #MULTICOREGC version
+TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
+fi
+
 if $GCPROFILEFLAG
 then # GC_PROFILE version
 TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"