Skip to content

Commit

Permalink
Merge "Move hwui from PGO pipeline to AFDO"
Browse files Browse the repository at this point in the history
  • Loading branch information
kongy authored and Gerrit Code Review committed Jan 10, 2022
2 parents d1d70cf + 7c0a3ad commit 7855cf3
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions libs/hwui/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ cc_defaults {
"skia_deps",
//"hwui_bugreport_font_cache_usage",
//"hwui_compile_for_perf",
"hwui_pgo",
"hwui_lto",
],

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -626,6 +609,7 @@ cc_library {
version_script: "libhwui.map.txt",
},
},
afdo: true,
}

cc_library_static {
Expand Down Expand Up @@ -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",
],
}

0 comments on commit 7855cf3

Please sign in to comment.