Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3278032f authored by Yi Kong's avatar Yi Kong
Browse files

Turn on PGO for libui

Enable PGO (profile guided optimisation) for better
performance.

Bug: 175205560
Bug: 195134194
Test: presubmit
Change-Id: Ia704f4348e4ba5d8847f82ad31de2508bd5c1d2a
parent d3ee506d
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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",
    ],
}