Use speed-profile instead of quicken for the profile case
Reduces calculator launch from 354 -> 325 with a profile. Bug: 38032017 Test: mm Change-Id: I795a2d3f4db5546be4d77c3716e69d20d8f23549
This commit is contained in:
parent
ff1984b27d
commit
c5536ffbd3
1 changed files with 6 additions and 1 deletions
|
@ -159,8 +159,13 @@ ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(L
|
||||||
else
|
else
|
||||||
# If no compiler filter is specified, default to 'quicken' to save on storage.
|
# If no compiler filter is specified, default to 'quicken' to save on storage.
|
||||||
ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
|
ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
|
||||||
|
ifeq (true,$(LOCAL_DEX_PREOPT_GENERATE_PROFILE))
|
||||||
|
# For non system server jars, use speed-profile when we have a profile.
|
||||||
|
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed-profile
|
||||||
|
else
|
||||||
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=quicken
|
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=quicken
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)
|
$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)
|
||||||
|
|
Loading…
Reference in a new issue