OSDN Git Service

Associate Java source code line number with JIT traces.
authorBen Cheng <bccheng@android.com>
Tue, 21 Jul 2009 17:22:22 +0000 (10:22 -0700)
committerBen Cheng <bccheng@android.com>
Tue, 21 Jul 2009 17:46:13 +0000 (10:46 -0700)
commitdfc2479a28e66e689489bf778245c27026795dae
tree6c91375f8ddf9eeb853ba17b6c30d6fc02be46b1
parent0a9d099d117e2e6308e41cd8ccc1703bb4eddc2b
Associate Java source code line number with JIT traces.

Sample output:

D/dalvikvm(  400): TRACEPROFILE 0x426d945c    5192426 [0x4(+32), 810] Lcom/android/unit_tests/PerformanceTests$AddMemberVariableTest;testRun;()V
D/dalvikvm(  400): TRACEPROFILE 0x426d955c        263 [0x2(+1), 809] (omitted)
D/dalvikvm(  400): TRACEPROFILE 0x426d9640          0 [0x53(+1), 344] (omitted)
D/dalvikvm(  400): TRACEPROFILE 0x426d960c          0 [0x72(+1), 271] (omitted)
D/dalvikvm(  400): TRACEPROFILE 0x426d9590          0 [0x74(+5), 272] (omitted)

For the first line:

5192426: execution count of this trace
0x4: starting bytecode offset
+32: number of instructions included in the trace
810: line number corresponding to 0x4 in the file containing the method

Also add WITH_JIT_TUNING for now whenever JIT is enabled.
vm/Android.mk
vm/interp/Jit.c