diff options
author | Ben Cheng <bccheng@google.com> | 2010-02-24 15:00:40 -0800 |
---|---|---|
committer | Ben Cheng <bccheng@google.com> | 2010-02-24 15:03:09 -0800 |
commit | 88a0f970e47dc0091d2c9965aa9bd06667e5f4b7 (patch) | |
tree | 5d913bf1b99ae930dfc3d99a047a78b3c339dcb1 /vm/compiler/Compiler.h | |
parent | 59a007be670601e40f036f63904b3f51c91a4d95 (diff) | |
download | android_dalvik-88a0f970e47dc0091d2c9965aa9bd06667e5f4b7.tar.gz android_dalvik-88a0f970e47dc0091d2c9965aa9bd06667e5f4b7.tar.bz2 android_dalvik-88a0f970e47dc0091d2c9965aa9bd06667e5f4b7.zip |
Enhance the jit profiler to print more statistics and be more verbose.
Specifically, the per-trace invocation percentage is printed now.
D/dalvikvm( 671): TRACEPROFILE 0x42b6eed8 15449863 2.13% [0(+2), 253] Ljava/nio/Buffer;position;()I
D/dalvikvm( 671): TRACEPROFILE 0x42b7b3ac 15410023 2.13% [0x4(+3), 450] Lorg/apache/xml/serializer/CharInfo;shouldMapTextChar;(I)Z
D/dalvikvm( 671): TRACEPROFILE 0x42b7b2cc 15346582 2.12% [0(+2), 449] Lorg/apache/xml/serializer/CharInfo;shouldMapTextChar;(I)Z
D/dalvikvm( 671): TRACEPROFILE 0x42b7b40c 15013650 2.07% [0xb4(+2), 1527] Lorg/apache/xml/serializer/ToStream;characters;([CII)V
D/dalvikvm( 671): TRACEPROFILE 0x42b7b4f0 14907957 2.06% [0xc7(+2), 1537] Lorg/apache/xml/serializer/ToStream;characters;([CII)V
D/dalvikvm( 671): TRACEPROFILE 0x42b7b308 14898588 2.06% [0xad(+3), 1525] Lorg/apache/xml/serializer/ToStream;characters;([CII)V
D/dalvikvm( 671): TRACEPROFILE 0x42b7b52c 14798762 2.04% [0xc4(+2), 1523] Lorg/apache/xml/serializer/ToStream;characters;([CII)V
D/dalvikvm( 671): TRACEPROFILE 0x42b7b570 14763770 2.04% [0xf3(+2), 1577] Lorg/apache/xml/serializer/ToStream;characters;([CII)V
And the top 10 traces will be recompiled in verbose mode to facilitate code
quality analysis.
Diffstat (limited to 'vm/compiler/Compiler.h')
-rw-r--r-- | vm/compiler/Compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/compiler/Compiler.h b/vm/compiler/Compiler.h index ccc91ddb2..3f60a5e94 100644 --- a/vm/compiler/Compiler.h +++ b/vm/compiler/Compiler.h @@ -160,6 +160,7 @@ struct CompilationUnit; struct BasicBlock; struct SSARepresentation; struct GrowableList; +struct JitEntry; void dvmInitializeSSAConversion(struct CompilationUnit *cUnit); int dvmConvertSSARegToDalvik(struct CompilationUnit *cUnit, int ssaReg); @@ -179,6 +180,7 @@ char *dvmCompilerGetSSAString(struct CompilationUnit *cUnit, void dvmCompilerDataFlowAnalysisDispatcher(struct CompilationUnit *cUnit, void (*func)(struct CompilationUnit *, struct BasicBlock *)); void dvmCompilerStateRefresh(void); -JitTraceDescription *dvmCopyTraceDescriptor(const u2 *pc); +JitTraceDescription *dvmCopyTraceDescriptor(const u2 *pc, + const struct JitEntry *desc); #endif /* _DALVIK_VM_COMPILER */ |