From e80cd94d5cee0878174ce6ff7d5cb33b3d935ba4 Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Fri, 17 Jul 2009 15:54:23 -0700 Subject: Polish JIT trace profiling and fix a unchaining bug when profiling is enabled. --- vm/compiler/Utility.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/compiler/Utility.c') diff --git a/vm/compiler/Utility.c b/vm/compiler/Utility.c index b0c40e649..715f750a3 100644 --- a/vm/compiler/Utility.c +++ b/vm/compiler/Utility.c @@ -168,6 +168,8 @@ static int dumpMethodStats(void *compilerMethodStats, void *totalMethodStats) totalStats->compiledDalvikSize += methodStats->compiledDalvikSize; totalStats->nativeSize += methodStats->nativeSize; + /* Enable the following when fine-tuning the JIT performance */ +#if 0 int limit = (methodStats->dalvikSize >> 2) * 3; /* If over 3/4 of the Dalvik code is compiled, print something */ @@ -178,6 +180,7 @@ static int dumpMethodStats(void *compilerMethodStats, void *totalMethodStats) methodStats->dalvikSize, methodStats->nativeSize); } +#endif return 0; } -- cgit v1.2.3