aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Srbecky2019-01-08 11:02:14 -0600
committerDavid Srbecky2019-01-09 07:32:12 -0600
commit99ae76e24a8a9c5fcb396b93ebc70f4789090b71 (patch)
tree05ec3b3931e3bbeb2e2fc4abbb372edd5b328821
parent6dc878bd87f29d488f7dc9a36ceb559ce78f5143 (diff)
downloadplatform-build-99ae76e24a8a9c5fcb396b93ebc70f4789090b71.tar.gz
platform-build-99ae76e24a8a9c5fcb396b93ebc70f4789090b71.tar.xz
platform-build-99ae76e24a8a9c5fcb396b93ebc70f4789090b71.zip
Enable mini-debug-info for JITed methods by default.
Generate and store minimum amount of information necessary to create backtraces in native tools (for crashes and profilers). The data is compressed and takes <5% relative to JIT code size (which is less than recent stack map savings; so win overall). Averages for non-compiled run of maps which filled JIT code cache to ~4MB: Q: code:1.55kb/method data:0.738kb/method debug:0.064kb/method(*this CL*) P: code:1.62kb/method data:0.956kb/method debug:0.835kb/method(if enabled) I also measured the P to Q on-disk stack maps savings in CL/762841 as ~28% (not all of that is applicable to JITed code, so that is an overestimate). Bug: 111350693 Test: Device boots, mini-debug-info is generated. Change-Id: I95883bd4f2d5c2308149ab0ba641b0a703c7f81b
-rw-r--r--target/product/runtime_libart.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk
index 6d835fd42..71834aa5e 100644
--- a/target/product/runtime_libart.mk
+++ b/target/product/runtime_libart.mk
@@ -100,4 +100,5 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
100 100
101# Enable minidebuginfo generation unless overridden. 101# Enable minidebuginfo generation unless overridden.
102PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ 102PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
103 dalvik.vm.minidebuginfo=true \
103 dalvik.vm.dex2oat-minidebuginfo=true 104 dalvik.vm.dex2oat-minidebuginfo=true