Add feature flag to throttle custom user timings [chromium/src : main]

0 views
Skip to first unread message

Michal Mocny (Gerrit)

unread,
Feb 17, 2026, 9:02:04 AM (3 days ago) Feb 17
to Shunya Shishido, Takashi Toyoshima, Keita Suzuki, Chromium LUCI CQ, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org
Attention needed from Keita Suzuki, Shunya Shishido and Takashi Toyoshima

Michal Mocny added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Michal Mocny . resolved

Drive by comment: Thanks for creating a page_load specific features common file! Good idea.

Question about the motivations here: do we have some known insights that this is slow? I did notice that the way we send these seemed potentially quite verbose, especially as we increase the adoption of custom user timings...

Open in Gerrit

Related details

Attention is currently required from:
  • Keita Suzuki
  • Shunya Shishido
  • Takashi Toyoshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not 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: I217cb6d6611115837a987cca19398ec8051aed40
Gerrit-Change-Number: 7583193
Gerrit-PatchSet: 4
Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
Gerrit-Attention: Keita Suzuki <suzuk...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Feb 2026 14:01:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Shunya Shishido (Gerrit)

unread,
Feb 17, 2026, 7:51:02 PM (3 days ago) Feb 17
to Michal Mocny, Takashi Toyoshima, Keita Suzuki, Chromium LUCI CQ, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org
Attention needed from Keita Suzuki, Michal Mocny and Takashi Toyoshima

Shunya Shishido added 1 comment

Patchset-level comments
Michal Mocny . resolved

Drive by comment: Thanks for creating a page_load specific features common file! Good idea.

Question about the motivations here: do we have some known insights that this is slow? I did notice that the way we send these seemed potentially quite verbose, especially as we increase the adoption of custom user timings...

Shunya Shishido

We don't recognize known regressions so far. But we'd like to restrict it because currently it's sent to from the renderer to the browser immediately using a dedicated Mojo call[1] while other events (including "regular" user timings e.g. mark_fully_visible, mark_interactive) are sent via timer[2].

This exceptional IPC was introduced to understand abandoned navigation timing precisely, and we were aware that important loading milestones were sent via performance.mark() in some specific websites.

We don't actively monitor navigation abandoned timings in UMA anymore. And recently we received a request to record performance.mark() events triggered in subframes (currently we restrict it on the main frame only) crbug.com/467177770.

As this was an exceptional approach, we'd like to handle custom user timings as same as other events in PLMO before accepting events from subframes not to increase the number of IPCs,

[1] https://source.chromium.org/chromium/chromium/src/+/main:components/page_load_metrics/renderer/page_timing_metrics_sender.cc;l=300-307;drc=f5cd0240d3fb3c70b16d09a992c43a43586001b4
[2] https://source.chromium.org/chromium/chromium/src/+/main:components/page_load_metrics/renderer/page_timing_metrics_sender.cc;l=322-345;drc=6d3e2ca997ca3ef995f719b22a1658a250a22d1e

Open in Gerrit

Related details

Attention is currently required from:
  • Keita Suzuki
  • Michal Mocny
  • Takashi Toyoshima
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not 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: I217cb6d6611115837a987cca19398ec8051aed40
Gerrit-Change-Number: 7583193
Gerrit-PatchSet: 4
Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-CC: Michal Mocny <mmo...@chromium.org>
Gerrit-Attention: Takashi Toyoshima <toyo...@chromium.org>
Gerrit-Attention: Keita Suzuki <suzuk...@chromium.org>
Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Feb 2026 00:50:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michal Mocny <mmo...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Takashi Toyoshima (Gerrit)

unread,
Feb 19, 2026, 12:48:19 AM (yesterday) Feb 19
to Shunya Shishido, Michal Mocny, Keita Suzuki, Chromium LUCI CQ, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org
Attention needed from Keita Suzuki, Michal Mocny and Shunya Shishido

Takashi Toyoshima voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Keita Suzuki
  • Michal Mocny
  • Shunya Shishido
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I217cb6d6611115837a987cca19398ec8051aed40
    Gerrit-Change-Number: 7583193
    Gerrit-PatchSet: 4
    Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Attention: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 05:47:49 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Shunya Shishido (Gerrit)

    unread,
    Feb 19, 2026, 1:03:21 AM (yesterday) Feb 19
    to Takashi Toyoshima, Michal Mocny, Keita Suzuki, Chromium LUCI CQ, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org
    Attention needed from Keita Suzuki and Michal Mocny

    Shunya Shishido voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Keita Suzuki
    • Michal Mocny
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I217cb6d6611115837a987cca19398ec8051aed40
    Gerrit-Change-Number: 7583193
    Gerrit-PatchSet: 4
    Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 06:02:50 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Keita Suzuki (Gerrit)

    unread,
    Feb 19, 2026, 1:09:27 AM (yesterday) Feb 19
    to Shunya Shishido, Takashi Toyoshima, Michal Mocny, Chromium LUCI CQ, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org
    Attention needed from Michal Mocny and Shunya Shishido

    Keita Suzuki voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michal Mocny
    • Shunya Shishido
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • 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: I217cb6d6611115837a987cca19398ec8051aed40
    Gerrit-Change-Number: 7583193
    Gerrit-PatchSet: 4
    Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    Gerrit-Attention: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Attention: Michal Mocny <mmo...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Feb 2026 06:09:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Feb 19, 2026, 1:59:43 AM (yesterday) Feb 19
    to Shunya Shishido, Keita Suzuki, Takashi Toyoshima, Michal Mocny, AyeAye, loading-rev...@chromium.org, speed-metr...@chromium.org, speed-metrics...@chromium.org, csharris...@chromium.org, bmcquad...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Add feature flag to throttle custom user timings

    Introduce the kThrottleSendingCustomUserTimings feature flag to control
    whether custom user timings are throttled when sent from the renderer to
    the browser process.

    This feature is disabled by default. The flag is defined in the
    components/page_load_metrics/common directory to ensure accessibility
    for both browser and renderer classes.
    Bug: 467177770
    Change-Id: I217cb6d6611115837a987cca19398ec8051aed40
    Reviewed-by: Takashi Toyoshima <toyo...@chromium.org>
    Reviewed-by: Keita Suzuki <suzuk...@chromium.org>
    Commit-Queue: Shunya Shishido <sisid...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1586905}
    Files:
    • M components/page_load_metrics/common/BUILD.gn
    • A components/page_load_metrics/common/features.cc
    • A components/page_load_metrics/common/features.h
    Change size: S
    Delta: 3 files changed, 34 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Keita Suzuki, +1 by Takashi Toyoshima
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I217cb6d6611115837a987cca19398ec8051aed40
    Gerrit-Change-Number: 7583193
    Gerrit-PatchSet: 5
    Gerrit-Owner: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Keita Suzuki <suzuk...@chromium.org>
    Gerrit-Reviewer: Shunya Shishido <sisid...@chromium.org>
    Gerrit-Reviewer: Takashi Toyoshima <toyo...@chromium.org>
    Gerrit-CC: Michal Mocny <mmo...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages