From: bdemsky Date: Mon, 11 Jul 2011 06:31:57 +0000 (+0000) Subject: add more space for profile data X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fd9928fb54d2439059a72561cbf1f80849a6d614;p=IRC.git add more space for profile data --- diff --git a/Robust/src/Runtime/bamboo/multicoregarbage.c b/Robust/src/Runtime/bamboo/multicoregarbage.c index 5e015351..1840d855 100644 --- a/Robust/src/Runtime/bamboo/multicoregarbage.c +++ b/Robust/src/Runtime/bamboo/multicoregarbage.c @@ -299,6 +299,8 @@ void gc_collect(struct garbagelist * stackptr) { WAITFORGCPHASE(MARKPHASE); GC_PRINTF("Start mark phase\n"); + GCPROFILE_ITEM(); + mark(stackptr); GC_PRINTF("Finish mark phase, start compact phase\n"); compact(); @@ -335,12 +337,15 @@ void gc_nocollect(struct garbagelist * stackptr) { GC_PRINTF("Do initGC\n"); initGC(); CACHEADAPT_GC(true); + //send init finish msg to core coordinator send_msg_2(STARTUPCORE,GCFINISHINIT,BAMBOO_NUM_OF_CORE); + WAITFORGCPHASE(MARKPHASE); GC_PRINTF("Start mark phase\n"); + GCPROFILE_ITEM(); mark(stackptr); GC_PRINTF("Finish mark phase, wait for update\n"); @@ -452,6 +457,7 @@ void gc_master(struct garbagelist * stackptr) { unsigned long long tmpt = BAMBOO_GET_EXE_TIME(); CACHEADAPT_OUTPUT_CACHE_SAMPLING(); gc_output_cache_policy_time += (BAMBOO_GET_EXE_TIME()-tmpt); + GCPROFILE_ITEM(); //tprintf("start mark phase\n"); // do mark phase master_mark(stackptr); diff --git a/Robust/src/Runtime/bamboo/multicoregcprofile.h b/Robust/src/Runtime/bamboo/multicoregcprofile.h index 8a49b15c..6d844fbf 100644 --- a/Robust/src/Runtime/bamboo/multicoregcprofile.h +++ b/Robust/src/Runtime/bamboo/multicoregcprofile.h @@ -9,9 +9,9 @@ #define GCINFOLENGTH 100 #ifdef GC_CACHE_ADAPT -#define GC_PROFILE_NUM_FIELD 15 +#define GC_PROFILE_NUM_FIELD 20 #else -#define GC_PROFILE_NUM_FIELD 14 +#define GC_PROFILE_NUM_FIELD 19 #endif // GC_CACHE_ADAPT typedef struct gc_info { diff --git a/Robust/src/Runtime/bamboo/multicoreruntime.c b/Robust/src/Runtime/bamboo/multicoreruntime.c index fcee5d9b..c4f8918f 100644 --- a/Robust/src/Runtime/bamboo/multicoreruntime.c +++ b/Robust/src/Runtime/bamboo/multicoreruntime.c @@ -808,7 +808,7 @@ void run(int argc, char** argv) { } while(numconfirm!=0) ; - tprintf("start! \n"); + tprintf("START_EXECUTION\n"); bamboo_start_time = BAMBOO_GET_EXE_TIME(); } else { while(!startflag)