[go: nahoru, domu]

[PGO] Add capability to fetch Android PGO profiles.

PGO profiles for Android (ARM and ARM64) builds were taken from mac-arm
builds since Android PGO bots previously failure and / or create empty
.profraw files.

These problems have been resolved, and we'd like to have Android PGO use
profiles created by Android PGO bots. The steps to do so are:
1a. Add /chrome/build/android*.pgo.txt files, which contain names of
    gs://chromium-optimization-profiles/pgo_profiles/ .profdata files to
    fetch.
1b. Update build scripts to fetch Android .profdata files on
    "gclient runhooks", without using them (so still use mac-arm).
2. Add autorollers that will /chrome/build/android*.pgo.txt. This
   entails adding .cfg files in the skia-autoroll-internal-config repro.
3. Change Android builds to use Android profiles instead of mac-arm.

This CL performs 1a) and 1b).

Bug: 1308749, 1464107
Change-Id: Ib10b15ccbcd69104e9fe70f59142eb5d6a4f370e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4722865
Commit-Queue: Samuel Huang <huangs@chromium.org>
Reviewed-by: Jeff Yoon <jeffyoon@google.com>
Cr-Commit-Position: refs/heads/main@{#1177244}
diff --git a/tools/update_pgo_profiles.py b/tools/update_pgo_profiles.py
index 2e5c818..bd70abc 100755
--- a/tools/update_pgo_profiles.py
+++ b/tools/update_pgo_profiles.py
@@ -141,6 +141,8 @@
           'lacros64',
           'lacros-arm',
           'lacros-arm64',
+          'android-arm32',
+          'android-arm64',
       ],
       help='Identifier of a specific target platform + architecture.')
   subparsers = parser.add_subparsers()