diff options
| -rw-r--r-- | libs/hwui/Android.bp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/hwui/Android.bp b/libs/hwui/Android.bp index 124182f0336e..ad6ce2c4a9d6 100644 --- a/libs/hwui/Android.bp +++ b/libs/hwui/Android.bp @@ -250,7 +250,17 @@ cc_library { // If enabled, every GLES call is wrapped & error checked // Has moderate overhead "hwui_enable_opengl_validation", -], + ], + + // 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. + pgo: { + instrumentation: true, + profile_file: "hwui/hwui.profdata", + benchmarks: ["hwui"], + }, } // ------------------------ |