diff options
author | Ben Cheng <bccheng@android.com> | 2009-07-17 15:54:23 -0700 |
---|---|---|
committer | Ben Cheng <bccheng@android.com> | 2009-07-20 09:40:06 -0700 |
commit | e80cd94d5cee0878174ce6ff7d5cb33b3d935ba4 (patch) | |
tree | 9925c0940dee18ee14ef4e5acc946b2e8d99a448 /vm/compiler/Utility.c | |
parent | 660972b1f6de45b488c5226dac415b27515aa8e1 (diff) | |
download | android_dalvik-e80cd94d5cee0878174ce6ff7d5cb33b3d935ba4.tar.gz android_dalvik-e80cd94d5cee0878174ce6ff7d5cb33b3d935ba4.tar.bz2 android_dalvik-e80cd94d5cee0878174ce6ff7d5cb33b3d935ba4.zip |
Polish JIT trace profiling and fix a unchaining bug when profiling is enabled.
Diffstat (limited to 'vm/compiler/Utility.c')
-rw-r--r-- | vm/compiler/Utility.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |