0

Add support and config files for PGO and Lacros Arm64

Adding required changes to infra to support and use lacros arm64
profiles.

Bug: 1417071
Change-Id: Ic6cea7df6684210e6364fb9b4a95212366c75420
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4431779
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Jeff Yoon <jeffyoon@google.com>
Cr-Commit-Position: refs/heads/main@{#1132127}
This commit is contained in:
Jeff Yoon
2023-04-18 20:37:29 +00:00
committed by Chromium LUCI CQ
parent f52ab32380
commit 158345e7f5
4 changed files with 22 additions and 1 deletions
DEPS
build/config/compiler/pgo
chrome/build
tools

11
DEPS

@ -5021,6 +5021,17 @@ hooks = [
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for lacros arm64',
'pattern': '.',
'condition': 'checkout_pgo_profiles and checkout_lacros_sdk',
'action': [ 'python3',
'src/tools/update_pgo_profiles.py',
'--target=lacros-arm64',
'update',
'--gs-url-base=chromium-optimization-profiles/pgo_profiles',
],
},
{
'name': 'Fetch PGO profiles for V8 builtins',
'pattern': '.',

@ -85,6 +85,8 @@ config("pgo_optimization_flags") {
inputs = [ "//chrome/build/lacros64.pgo.txt" ]
} else if (_pgo_target == "lacros-arm") {
inputs = [ "//chrome/build/lacros-arm.pgo.txt" ]
} else if (_pgo_target == "lacros-arm64") {
inputs = [ "//chrome/build/lacros-arm64.pgo.txt" ]
}
if (_pgo_target != "" && pgo_data_path == "") {

@ -0,0 +1 @@
chrome-chromeos-arm64-generic-main-1681689459-17b02088ef9c3aaed27dc7508042f32f355c55ee.profdata

@ -133,7 +133,14 @@ def main():
'--target',
required=True,
choices=[
'win32', 'win64', 'mac', 'mac-arm', 'linux', 'lacros64', 'lacros-arm'
'win32',
'win64',
'mac',
'mac-arm',
'linux',
'lacros64',
'lacros-arm',
'lacros-arm64',
],
help='Identifier of a specific target platform + architecture.')
subparsers = parser.add_subparsers()