Merge "Move hwui from PGO pipeline to AFDO" am: 7855cf3a10 am: a9b1871313

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1940815

Change-Id: I21db9005a2fc0d1eadefd17ff552f8ae83274d71
This commit is contained in:
Yi Kong
2022-01-10 17:10:29 +00:00
committed by Automerger Merge Worker

View File

@@ -35,7 +35,6 @@ cc_defaults {
"skia_deps", "skia_deps",
//"hwui_bugreport_font_cache_usage", //"hwui_bugreport_font_cache_usage",
//"hwui_compile_for_perf", //"hwui_compile_for_perf",
"hwui_pgo",
"hwui_lto", "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. // Build hwui library with ThinLTO by default.
cc_defaults { cc_defaults {
name: "hwui_lto", name: "hwui_lto",
@@ -626,6 +609,7 @@ cc_library {
version_script: "libhwui.map.txt", version_script: "libhwui.map.txt",
}, },
}, },
afdo: true,
} }
cc_library_static { cc_library_static {
@@ -757,15 +741,3 @@ cc_benchmark {
"tests/microbench/RenderNodeBench.cpp", "tests/microbench/RenderNodeBench.cpp",
], ],
} }
// ----------------------------------------
// Phony target to build benchmarks for PGO
// ----------------------------------------
phony {
name: "pgo-targets-hwui",
required: [
"hwuimicro",
"hwuimacro",
],
}