Attention needed from Paul Adedeji and Tom Lukaszewicz
Ming-Ying Chung added 2 comments![Open in Gerrit]()
Patchset-level comments
File-level comment, Patchset 5:Ming-Ying Chung .
resolvedPTAL sorry I've to update this CL quite a bit as I found that some metrics don't meet our requirement. This CL now only logc 1 new metric for WebUI / native view.
File chrome/browser/page_load_metrics/observers/top_chrome_webui_metrics_observer.cc
Line 58, Patchset 4:void TopChromeWebUIMetricsObserver::OnFirstPaintInPage(
const page_load_metrics::mojom::PageLoadTiming& timing) {
CHECK(timing.paint_timing->first_paint.has_value());
// Time from navigation to FP. They can be very large for preloaded WebUIs
// because the FP is not recorded until the WebUI is actually shown.
base::TimeDelta first_paint = timing.paint_timing->first_paint.value();
PAGE_LOAD_HISTOGRAM(GetMetricName(webui_name_, "NavigationToFirstPaint"),
first_paint);
// Time from request to FP. This metric disregards time spent in the
// background, which is non-zero when the WebUI is preloaded.
base::TimeDelta background_time = GetBackgroundTime(GetDelegate());
PAGE_LOAD_SHORT_HISTOGRAM(GetMetricName(webui_name_, "RequestToFirstPaint"),
first_paint - background_time);
}Ming-Ying Chung .
resolved@paula...@google.com I am struggling to figure out why FirstPaint is triggered for webui omnibox popup but not FirstContentfulPaint. Maybe your knowledge can help:
- Is WebUI OmniboxPopup preloaded in background?
- If so,
- is it set to visible only when user interacts with the search bar?
- any of the preloaded UI being displayed before user interaction?
Ming-Ying ChungResolved. we removed FP metrics due to these. See the updated cl description.
Open in GerritRelated details
Attention is currently required from:
- Paul Adedeji
- Tom Lukaszewicz
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I955a2f3bae46cab8e40811b55502bdd0f1fca168
Gerrit-Change-Number: 7650781
Gerrit-PatchSet: 5
Gerrit-Comment-Date: Thu, 12 Mar 2026 23:03:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No