OSDN Git Service

ART: Add dex2oat swap-usage parameters
authorAndreas Gampe <agampe@google.com>
Wed, 29 Jun 2016 16:36:30 +0000 (09:36 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 29 Jun 2016 23:58:53 +0000 (16:58 -0700)
commite1459ae21f1eb6ed779bf9d049e4f41f1edf89e7
tree1d324f4b3cb885ff657a84158221c74618f67bcd
parent04a23d7e10fa42c5047b6f08048dbaacd1e74fcd
ART: Add dex2oat swap-usage parameters

Make the dex2oat swap usage decision dependent on parameters that
can be changed on the command line. Both the dex file size and dex
file count can be modified through the following to new parameters:

  --swap-dex-size-threshold
  --swap-dex-count-threshold

The defaults remain the same (20MB and 2).

Factor out some dex2oat setup code from oat_file_assistant_test
and use it in a new dex2oat test.

Bug: 29557002
Change-Id: I8863224f0304c98afe251572ffda8c5b3ead735b
Test: m test-art-host-gtest-dex2oat_test
Test: m test-art-host-gtest-oat_file_assistant_test
Test: m test-art-host
build/Android.gtest.mk
dex2oat/dex2oat.cc
dex2oat/dex2oat_test.cc [new file with mode: 0644]
runtime/common_runtime_test.cc
runtime/common_runtime_test.h
runtime/dex2oat_environment_test.h [new file with mode: 0644]
runtime/oat_file_assistant_test.cc