diff options
| author | 2022-01-08 01:01:20 +0800 | |
|---|---|---|
| committer | 2022-01-07 17:09:00 +0000 | |
| commit | 7c0a3ad3eb6a173feb569ddd499b07f745f2672a (patch) | |
| tree | 8862c2c1a9dc3785eed5c4f4ed8c74850f9aa087 | |
| parent | 886bf03a2d74aa14aebf8d193db5b68b1104507f (diff) | |
Move hwui from PGO pipeline to AFDO
AFDO uses profiles collected from real world users. It is more
accurate than PGO, which is collected from running synthetic
benchmarks.
Test: presubmit
Change-Id: I614b28fa1238953879cbf6318690c26c74a9aadb
| -rw-r--r-- | libs/hwui/Android.bp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index 2c299fa32315..9c5641b309e9 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -35,7 +35,6 @@ cc_defaults { "skia_deps", //"hwui_bugreport_font_cache_usage", //"hwui_compile_for_perf", - "hwui_pgo", "hwui_lto", ], @@ -155,22 +154,6 @@ cc_defaults { ], } -// 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 -// or set enable_profile_use property to false. -cc_defaults { - name: "hwui_pgo", - - pgo: { - instrumentation: true, - profile_file: "hwui/hwui.profdata", - benchmarks: ["hwui"], - enable_profile_use: true, - }, -} - // Build hwui library with ThinLTO by default. cc_defaults { name: "hwui_lto", @@ -626,6 +609,7 @@ cc_library { version_script: "libhwui.map.txt", }, }, + afdo: true, } cc_library_static { @@ -757,15 +741,3 @@ cc_benchmark { "tests/microbench/RenderNodeBench.cpp", ], } - -// ---------------------------------------- -// Phony target to build benchmarks for PGO -// ---------------------------------------- - -phony { - name: "pgo-targets-hwui", - required: [ - "hwuimicro", - "hwuimacro", - ], -} |