From 99ae76e24a8a9c5fcb396b93ebc70f4789090b71 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Tue, 8 Jan 2019 17:02:14 +0000 Subject: [PATCH] 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 --- target/product/runtime_libart.mk | 1 + 1 file changed, 1 insertion(+) 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 += \ # Enable minidebuginfo generation unless overridden. PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ + dalvik.vm.minidebuginfo=true \ dalvik.vm.dex2oat-minidebuginfo=true