From ded6035da8bf23bb5b5b5315f757ea7f4c1a011b Mon Sep 17 00:00:00 2001 From: Zhizhou Yang Date: Tue, 17 Oct 2017 13:37:00 -0700 Subject: [PATCH] Turn off PGO temporarily Bug: http://b/67862169 Turn off PGO for hwui since it caused a performance regression in tesetBitmapDrawPerf. Test: Built successfully and tested the performance with benchmarks. Change-Id: I7be1ff919cc03eb72e2464867a417cc3dad7a260 --- libs/hwui/Android.bp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index ad6ce2c4a9d60..40aecac5e27d6 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -255,11 +255,13 @@ cc_library { // Build libhwui with PGO by default. // Location of PGO profile data is defined in build/soong/cc/pgo.go // and is separate from hwui. - // To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable. + // To turn it off, set ANDROID_PGO_NO_PROFILE_USE environment variable + // or set enable_profile_use property to false. pgo: { instrumentation: true, profile_file: "hwui/hwui.profdata", benchmarks: ["hwui"], + enable_profile_use: false, }, }