diff options
| author | 2021-12-04 03:11:05 +0800 | |
|---|---|---|
| committer | 2021-12-04 03:16:30 +0800 | |
| commit | 3278032fd274b56aee028d92d89cc4801348445e (patch) | |
| tree | 23c1151f955d97a4cae4fbb059c8db015a570f71 | |
| parent | d3ee506d560cf7166d82a5eefebbe96ef8e3405f (diff) | |
Turn on PGO for libui
Enable PGO (profile guided optimisation) for better
performance.
Bug: 175205560
Bug: 195134194
Test: presubmit
Change-Id: Ia704f4348e4ba5d8847f82ad31de2508bd5c1d2a
| -rw-r--r-- | libs/ui/Android.bp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/ui/Android.bp b/libs/ui/Android.bp index eed58c5715..d4d0ee4f35 100644 --- a/libs/ui/Android.bp +++ b/libs/ui/Android.bp @@ -54,7 +54,7 @@ cc_library_static { target: { windows: { enabled: true, - } + }, }, defaults: [ @@ -225,6 +225,11 @@ cc_library_shared { "libui_headers", ], min_sdk_version: "29", + + pgo: { + sampling: true, + profile_file: "libui/libui.profdata", + }, } cc_library_headers { @@ -266,6 +271,6 @@ filegroup { "Rect.cpp", "Region.cpp", "PixelFormat.cpp", - "Transform.cpp" + "Transform.cpp", ], } |