OSDN Git Service

Enable profiled guided compilation in dex2oat
authorCalin Juravle <calin@google.com>
Wed, 25 Nov 2015 15:59:14 +0000 (15:59 +0000)
committerCalin Juravle <calin@google.com>
Thu, 10 Dec 2015 17:34:06 +0000 (17:34 +0000)
commit500c9be1f261a8a95ae7a25f4f8084f43207f313
treee36173ca0ea9dfa88e6e605f156c3992414d7d1b
parent836ee764c86892aff1dca6b0f8b27e32c7374cc7
Enable profiled guided compilation in dex2oat

- add parsing of the profile info saved during JIT.
- don't compile methods which are not part of the profile info.
- delete old profile hooks.
- add test for reading/writing profile. The test is disable in:
   * interpreter modes: the test needs JIT.
   * no-dex2oat/no-prebuild: we only save profiling info for the primary
     oat file. In these modes we don't create oat files and thus nothing
     is saved.

Bug:26080105

Change-Id: Ifdc63dc9d4b537fc79e54c3edc3ae3a462bc30fb
17 files changed:
compiler/dex/mir_analysis.cc
compiler/dex/mir_graph.h
compiler/dex/quick/quick_compiler.cc
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver.h
runtime/jit/jit.cc
runtime/jit/offline_profiling_info.cc
runtime/jit/offline_profiling_info.h
runtime/runtime.cc
test/554-jit-profile-file/expected.txt [new file with mode: 0644]
test/554-jit-profile-file/info.txt [new file with mode: 0644]
test/554-jit-profile-file/offline_profile.cc [new file with mode: 0644]
test/554-jit-profile-file/run [new file with mode: 0644]
test/554-jit-profile-file/src-multidex/OtherDex.java [new file with mode: 0644]
test/554-jit-profile-file/src/Main.java [new file with mode: 0644]
test/Android.libarttest.mk
test/Android.run-test.mk