From 2598f20767c715386f885c322e5d56d56b81a04b Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Fri, 19 Feb 2021 17:48:33 +0800 Subject: surfaceflinger: Enable PGO This CL is no-op without the actual profile checked in. Bug: 175205560 Bug: 180728514 Test: build Change-Id: Ic62de6b423b0c7f96ad6475378bcc74440e93dbf --- services/surfaceflinger/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/surfaceflinger/Android.bp b/services/surfaceflinger/Android.bp index aa59f850e5..6b3bf8d865 100644 --- a/services/surfaceflinger/Android.bp +++ b/services/surfaceflinger/Android.bp @@ -112,6 +112,10 @@ cc_defaults { 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, -- cgit v1.2.3-59-g8ed1b