Polish JIT trace profiling and fix a unchaining bug when profiling is enabled.
diff --git a/vm/compiler/Utility.c b/vm/compiler/Utility.c
index b0c40e6..715f750 100644
--- a/vm/compiler/Utility.c
+++ b/vm/compiler/Utility.c
@@ -168,6 +168,8 @@
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 @@
methodStats->dalvikSize,
methodStats->nativeSize);
}
+#endif
return 0;
}