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

Commit 3ccc52fb authored by Yi Kong's avatar Yi Kong
Browse files

Opt libhwui out of -fprofile-sample-accurate

Some hwui code paths might be infrequently executed but critical to the
UI latency. Opt out of -fprofile-sample-accurate so that the compiler
won't de-optimise cold code paths.

Test: presubmit
Bug: 273415627
Change-Id: Ieaf34fc0d2e75aa54c46fec0fde38cee42a5c3c3
parent e347e926
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -55,6 +55,10 @@ cc_defaults {
        // GCC false-positives on this warning, and since we -Werror that's
        // a problem
        "-Wno-free-nonheap-object",

        // Do not de-optimise cold code paths in AFDO.
        // Some code paths might be infrequently executed but critical to latency.
        "-fno-profile-sample-accurate",
    ],

    include_dirs: [