platform_build_soong/java
Colin Cross 6db4d4e613 Optimize CPU time when running d8 and r8
Pass -XX:+TieredCompilation -XX:TieredStopAtLevel=1 to the JVM to
reduce the time spent JITing, which in local experiments reduced
the CPU time of R8 while increasing the wall time, and reduced the
total number of runnable threads.

Without the new flags:
$ time out/soong/host/linux-x86/bin/r8-compat-proguard -injars out/target/common/obj/APPS/Dialer_intermediates/classes.jar ...
real	0m30.090s
user	4m35.337s
sys	0m12.853s

With the new flags:
$ time out/soong/host/linux-x86/bin/r8-compat-proguard -JXX:+TieredCompilation -JXX:TieredStopAtLevel=1 -injars out/target/common/obj/APPS/Dialer_intermediates/classes.jar ...
real	0m35.674s
user	2m45.135s
sys	0m9.531s

The increase in wall time should be offset by the better parallelism from
the reduced CPU time.

Bug: 119270658
Test: m checkbuild
Change-Id: I8fc78b5ef1f8c6f51fd97a29461b96ae2b35cada
2019-03-01 15:28:19 +00:00
..
config Optimize CPU time when running d8 and r8 2019-03-01 15:28:19 +00:00
OWNERS Add an owners file for dexpreopt files. 2018-12-18 20:28:06 +00:00
aapt2.go Support passing resource zips to aapt2 2019-02-20 18:12:41 +00:00
aar.go Support passing resource zips to aapt2 2019-02-20 18:12:41 +00:00
android_manifest.go Set usesNonSdkApi in manifest when Platform_apis=true 2019-02-18 19:21:02 +00:00
android_resources.go Prepare for a type-safe OnceKey 2019-02-06 01:52:41 +00:00
androidmk.go Add RuleBuilder.Installs().String() 2019-02-13 08:03:29 -08:00
app.go aapt2 flag for target manifest package override 2019-02-28 15:41:45 -08:00
app_builder.go Make manifest and APK agree on uncompressed native libs 2019-02-08 15:24:47 +00:00
app_test.go aapt2 flag for target manifest package override 2019-02-28 15:41:45 -08:00
builder.go Make manifest and APK agree on uncompressed native libs 2019-02-08 15:24:47 +00:00
dex.go Optimize CPU time when running d8 and r8 2019-03-01 15:28:19 +00:00
dexpreopt.go Refactor dexpreopt_bootjars.go to prepare for multiple boot images 2019-02-20 22:06:29 -08:00
dexpreopt_bootjars.go Move boot image oatdump phony rules into Soong 2019-02-28 22:00:21 -08:00
dexpreopt_config.go Fix Rel() after ReplaceExtension or InSameDir 2019-02-27 20:23:25 +00:00
dexpreopt_test.go Don't dexpreopt when compile_dex but not installable 2019-01-06 08:50:36 -08:00
droiddoc.go Remove reference to legacy-test and core-junit from comments 2019-02-14 10:53:59 +00:00
gen.go Remove incorrect file comments 2018-12-27 12:26:30 -08:00
genrule.go Add module type docs to the java package 2019-02-13 18:39:40 +00:00
hiddenapi.go Improve hiddenapi processing so it does not require white list 2019-02-28 16:13:20 +00:00
hiddenapi_singleton.go Fix hiddenapi issue when REMOVE_ATB_FROM_BCP=true 2019-02-28 16:15:44 +00:00
jacoco.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Add java_* 'services:' field 2019-02-27 23:14:47 +00:00
java_resources.go soong_zip: support globs in -f and -D arguments 2018-09-28 14:01:29 -07:00
java_test.go Revert "Add override_module." 2019-02-28 16:22:30 +00:00
jdeps.go Modify jar dependencies collection from dexpreopt to jar with resource 2018-12-21 10:37:03 +00:00
jdeps_test.go jarjar_rules: accept file-group 2019-01-23 18:05:18 +00:00
kotlin.go Clean up srcjar directories after each rule 2019-01-25 00:53:05 +00:00
kotlin_test.go Remove annotation_processors property 2019-01-24 23:48:04 +00:00
plugin.go Replace annotation_processors with plugins 2019-01-23 20:17:51 +00:00
plugin_test.go Remove annotation_processors property 2019-01-24 23:48:04 +00:00
prebuilt_apis.go Get latest api version 2019-02-14 19:46:34 +09:00
proto.go Revert "Use protoc-gen-javalite for java lite protos" 2018-11-04 17:23:48 -08:00
sdk.go Prepare for a type-safe OnceKey 2019-02-06 01:52:41 +00:00
sdk_library.go Add path valid check 2019-02-28 16:51:53 +09:00
sdk_test.go Use latest SDK version for current in PDK builds 2019-01-10 07:09:35 +00:00
support_libraries.go Make MakeVarsContext a PathContext 2019-02-07 22:31:04 +00:00
system_modules.go Enforce dependencies have right architecture 2018-08-30 16:31:02 +00:00
testing.go Refactor dexpreopt_bootjars.go to prepare for multiple boot images 2019-02-20 22:06:29 -08:00