surfaceflinger: Enable PGO
This CL is no-op without the actual profile checked in.
Bug: 175205560
Bug: 180728514
Test: build
Change-Id: Ic62de6b423b0c7f96ad6475378bcc74440e93dbf
diff --git a/services/surfaceflinger/Android.bp b/services/surfaceflinger/Android.bp
index aa59f85..6b3bf8d 100644
--- a/services/surfaceflinger/Android.bp
+++ b/services/surfaceflinger/Android.bp
@@ -112,6 +112,10 @@
thin: true,
},
whole_program_vtables: true, // Requires ThinLTO
+ pgo: {
+ sampling: true,
+ profile_file: "surfaceflinger/surfaceflinger.profdata",
+ },
// TODO(b/131771163): Fix broken fuzzer support with LTO.
sanitize: {
fuzzer: false,