From: bdemsky Date: Wed, 27 Jul 2011 05:21:21 +0000 (+0000) Subject: memory profiler hack X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8894649e477bb932ce25e3e27613350515589ded;p=IRC.git memory profiler hack --- diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.c b/Robust/src/Runtime/bamboo/multicoreruntime.c index 039ca11e..3b3eca0a 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.c +++ b/Robust/src/Runtime/bamboo/multicoreruntime.c @@ -13,6 +13,9 @@ #ifdef PERFCOUNT #include "bme_perf_counter.h" #endif +#ifdef MEMPERFCOUNT +#include "memprof.h" +#endif extern int classsize[]; extern int typearray[]; diff --git a/Robust/src/buildscript b/Robust/src/buildscript index 0f2107ab..5e4ca12f 100755 --- a/Robust/src/buildscript +++ b/Robust/src/buildscript @@ -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"