Add script for PGO for WebView [chromium/src : main]

0 views
Skip to first unread message

Mateusz Zbikowski (Gerrit)

unread,
Feb 23, 2026, 9:11:05 AM (2 days ago) Feb 23
to Ziad Youssef, Peter Wen, Trung Nguyen, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, telemetr...@chromium.org
Attention needed from Peter Wen and Ziad Youssef

Mateusz Zbikowski voted and added 4 comments

Votes added by Mateusz Zbikowski

Code-Review+1

4 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Mateusz Zbikowski . resolved

LGTM with comments.

As for the presubmit failures, I hope this is just a case of needing a rebase.

File tools/perf/chrome_telemetry_build/BUILD.gn
Line 142, Patchset 7 (Latest): data_deps += [ "//clank/android_webview:system_webview_google${_webview_bitness_if_needed}_bundle" ]
} else {
data_deps += [
"//android_webview:system_webview${_webview_bitness_if_needed}_bundle",
Mateusz Zbikowski . unresolved

Optional: instead, we might want to define separate targets - the internal one in clank, and add it through `TELEMETRY_CLANK_BROWSER_TARGET_SUFFIXES` - this might be cleaner and more consistent with prior art.

File tools/pgo/BUILD.gn
Line 14, Patchset 7 (Latest):python_library("generate_profile_py") {
testonly = true
pydeps_file = "//tools/pgo/generate_profile.pydeps"
data = [ "//.vpython3" ]
}
Mateusz Zbikowski . unresolved

I think we need all this too (+ the pydeps file itself, and the deps on the python_library target in our `generate_profile_webview_test`). If you've been running this locally then you'll have all the required files, but without these entries I am guessing they would not be passed to the `generate_profile` swarming task.

File tools/pgo/generate_profile_webview.py
Line 124, Patchset 7 (Latest): installer_path = f'{args.outputdir}/bin/system_webview_google_64_32_bundle'
Mateusz Zbikowski . unresolved

As discussed, can we have an arg for that? It can default to this value but that would allow running the script without an internal checkout.

Open in Gerrit

Related details

Attention is currently required from:
  • Peter Wen
  • Ziad Youssef
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I70cf0e37a85245aeb87654097d53d5089926bf89
Gerrit-Change-Number: 7367395
Gerrit-PatchSet: 7
Gerrit-Owner: Ziad Youssef <ziady...@chromium.org>
Gerrit-Reviewer: Mateusz Zbikowski <zbik...@google.com>
Gerrit-Reviewer: Peter Wen <wn...@chromium.org>
Gerrit-Reviewer: Ziad Youssef <ziady...@chromium.org>
Gerrit-CC: Trung Nguyen <t...@google.com>
Gerrit-Attention: Ziad Youssef <ziady...@chromium.org>
Gerrit-Attention: Peter Wen <wn...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Feb 2026 14:10:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages