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

Commit 073db951 authored by Yi Kong's avatar Yi Kong Committed by Automerger Merge Worker
Browse files

Merge "Move hwui from PGO pipeline to AFDO" am: 7855cf3a am: a9b18713 am:...

Merge "Move hwui from PGO pipeline to AFDO" am: 7855cf3a am: a9b18713 am: 2936cb25 am: dce41cfc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1940815

Change-Id: I9c064d7f8d4a146976cbe3e8835507168472c3ce
parents 978ce25b dce41cfc
Loading
Loading
Loading
Loading
+1 −29
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ cc_defaults {
        "skia_deps",
        //"hwui_bugreport_font_cache_usage",
        //"hwui_compile_for_perf",
        "hwui_pgo",
        "hwui_lto",
    ],

@@ -159,22 +158,6 @@ cc_defaults {
    ],
}

// 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
// or set enable_profile_use property to false.
cc_defaults {
    name: "hwui_pgo",

    pgo: {
        instrumentation: true,
        profile_file: "hwui/hwui.profdata",
        benchmarks: ["hwui"],
        enable_profile_use: true,
    },
}

// Build hwui library with ThinLTO by default.
cc_defaults {
    name: "hwui_lto",
@@ -631,6 +614,7 @@ cc_library {
            version_script: "libhwui.map.txt",
        },
    },
    afdo: true,
}

cc_library_static {
@@ -764,15 +748,3 @@ cc_benchmark {
        "tests/microbench/RenderNodeBench.cpp",
    ],
}

// ----------------------------------------
// Phony target to build benchmarks for PGO
// ----------------------------------------

phony {
    name: "pgo-targets-hwui",
    required: [
        "hwuimicro",
        "hwuimacro",
    ],
}