OSDN Git Service

Dump more dex file data in oatdump
authorMathieu Chartier <mathieuc@google.com>
Tue, 21 Jun 2016 22:14:20 +0000 (15:14 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 13 Jul 2016 20:20:55 +0000 (13:20 -0700)
commit8e2c56252aa9527bd9a82bdd147fdc46cf5deb9c
tree4b300a176d73caae6c63768e951976a4fde993ef
parent633c22de95fe6f80c0dd3176e15de4de3ee4bc79
Dump more dex file data in oatdump

Dump some statistics for each dex file along side with strings loaded
from code and dex code bytes.

Sample output:
Cumulative dex file data
Num string ids: 202809
Num method ids: 320464
Num field ids: 162822
Num type ids: 68151
Num class defs: 48061
Unique strings loaded from dex code: 51049
Total strings loaded from dex code: 106651
Number of unique dex code items: 247929
Total number of dex code bytes: 11090574

Added content testing to oat dump test. No significant slowdown.

TEST: test-art-host
Bug: 29462018

Change-Id: I60effd3087d8c427eda4ee26431d5d77165b3939
compiler/optimizing/code_generator_arm.h
compiler/optimizing/code_generator_arm64.h
compiler/utils/string_reference_test.cc
compiler/utils/type_reference.h
oatdump/oatdump.cc
oatdump/oatdump_test.cc
runtime/string_reference.h [moved from compiler/utils/string_reference.h with 85% similarity]
runtime/utils.h