Collect per-method code size statistics to show compiled vs overall Dalvik portion and total native code size.
diff --git a/vm/compiler/Compiler.c b/vm/compiler/Compiler.c
index 9473834..f70b978 100644
--- a/vm/compiler/Compiler.c
+++ b/vm/compiler/Compiler.c
@@ -169,6 +169,8 @@
     memcpy((void *) gDvmJit.codeCache,
            (void *) dvmCompilerTemplateStart,
            templateSize);
+
+    gDvmJit.templateSize = templateSize;
     gDvmJit.codeCacheByteUsed = templateSize;
 
     /* Flush dcache and invalidate the icache to maintain coherence */
@@ -224,6 +226,9 @@
         goto fail;
     }
 
+    /* Track method-level compilation statistics */
+    gDvmJit.methodStatsTable =  dvmHashTableCreate(32, NULL);
+
     dvmUnlockMutex(&gDvmJit.compilerLock);
 
     return true;