OSDN Git Service

Disambiguate method overloads in -Xjitverbose output.
authorElliott Hughes <enh@google.com>
Fri, 2 Jul 2010 20:38:44 +0000 (13:38 -0700)
committerElliott Hughes <enh@google.com>
Fri, 2 Jul 2010 20:38:44 +0000 (13:38 -0700)
Before:

 TRACEINFO (35): 0x41660904 Ljava/lang/AbstractStringBuilder;append0 0xe 11 of 25, 4 blocks
 ...
 TRACEINFO (36): 0x41660a30 Ljava/lang/AbstractStringBuilder;append0 0x16 8 of 33, 6 blocks

After:

 TRACEINFO (35): 0x41660904 Ljava/lang/AbstractStringBuilder;append0.(C)V 0xe 11 of 25, 4 blocks
 ...
 TRACEINFO (36): 0x41660a30 Ljava/lang/AbstractStringBuilder;append0.(Ljava/lang/String;)V 0x16 8 of 33, 6 blocks

Change-Id: I73ee3b0981bf8db24322b1e9a0fec34f989c55b1

vm/compiler/Frontend.c

index db03b1b..4db75ad 100644 (file)
@@ -682,15 +682,18 @@ bool dvmCompileTrace(JitTraceDescription *desc, int numMaxInsts,
     lastBB->id = numBlocks++;
 
     if (cUnit.printMe) {
-        LOGD("TRACEINFO (%d): 0x%08x %s%s 0x%x %d of %d, %d blocks",
+        char* signature = dexProtoCopyMethodDescriptor(&desc->method->prototype);
+        LOGD("TRACEINFO (%d): 0x%08x %s%s.%s 0x%x %d of %d, %d blocks",
             compilationId,
             (intptr_t) desc->method->insns,
             desc->method->clazz->descriptor,
             desc->method->name,
+            signature,
             desc->trace[0].frag.startOffset,
             traceSize,
             dexCode->insnsSize,
             numBlocks);
+        free(signature);
     }
 
     BasicBlock **blockList;