[discard] Add latency metric for Tab discarding [chromium/src : main]

0 views
Skip to first unread message

Tom Lukaszewicz (Gerrit)

unread,
Jul 31, 2025, 2:10:14 AMJul 31
to Alex Moshchuk, Patrick Monette, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
Attention needed from Alex Moshchuk and Patrick Monette

Tom Lukaszewicz voted and added 4 comments

Votes added by Tom Lukaszewicz

Commit-Queue+1

4 comments

Patchset-level comments
File-level comment, Patchset 7 (Latest):
Tom Lukaszewicz . resolved

alexmos@ ptal //content
pmonette@ ptal //c/b/resource_coordinator

Commit Message
Line 9, Patchset 5:This CL adds Discarding.RetainedWebContents.DiscardLatency to
Shin Kawamura . resolved

nit: `Discarding.TabLifecycleUnit.DiscardLatency UMA metrics`

Tom Lukaszewicz

Done

Line 12, Patchset 5:This metric is specific to the WebContentsDiscard feature and
Shin Kawamura . resolved

Can we update this correspondingly?

Tom Lukaszewicz

Done

File content/browser/renderer_host/frame_tree.cc
Line 1111, Patchset 5: return false;
Shin Kawamura . resolved

In this case, on_discarded_cb is never triggered.

I think we should either:

  • make on_discarded_cb to accept bool. false if Discard is cancelled, true when the discard is completed.
  • Add code comment to WebContents::Discard that on_discarded_cb is not guaranteed to be triggered.
Tom Lukaszewicz

Added the comment to WebContents::Discard() for the time being. Based on metrics this has a very small effect size (occurs 0.01% of the time).

Once WebContentsDiscard ships and the old codepath is removed it will be easier to return a bool to handle the exceptional circumstance.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Moshchuk
  • Patrick Monette
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
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: Ia158580050a4a62ff7d67e17917017516872780f
Gerrit-Change-Number: 6791366
Gerrit-PatchSet: 7
Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
Gerrit-Comment-Date: Thu, 31 Jul 2025 06:09:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Shin Kawamura <kaw...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
Jul 31, 2025, 2:13:24 AMJul 31
to Daniel Cheng, Darryl James, Alex Moshchuk, Patrick Monette, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
Attention needed from Alex Moshchuk, Daniel Cheng, Darryl James and Patrick Monette

Tom Lukaszewicz added 1 comment

Patchset-level comments
Tom Lukaszewicz . resolved

dcheng@ ptal //third_party/blink
dljames@ ptal histograms.xml

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Moshchuk
  • Daniel Cheng
  • Darryl James
  • Patrick Monette
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement satisfiedCode-Review
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: Ia158580050a4a62ff7d67e17917017516872780f
Gerrit-Change-Number: 6791366
Gerrit-PatchSet: 7
Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Attention: Darryl James <dlj...@chromium.org>
Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
Gerrit-Comment-Date: Thu, 31 Jul 2025 06:12:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Darryl James (Gerrit)

unread,
Jul 31, 2025, 12:21:25 PMJul 31
to Tom Lukaszewicz, Daniel Cheng, Alex Moshchuk, Patrick Monette, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
Attention needed from Alex Moshchuk, Daniel Cheng, Patrick Monette and Tom Lukaszewicz

Darryl James added 1 comment

File tools/metrics/histograms/metadata/tab/histograms.xml
Line 276, Patchset 8 (Latest):<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
Darryl James . unresolved

This was probably discussed already but the description is split into 2 completely different types of metrics:

1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retained

Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Moshchuk
  • Daniel Cheng
  • Patrick Monette
  • Tom Lukaszewicz
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 8
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 16:21:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Daniel Cheng (Gerrit)

    unread,
    Jul 31, 2025, 1:43:48 PMJul 31
    to Tom Lukaszewicz, Daniel Cheng, Darryl James, Alex Moshchuk, Patrick Monette, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Alex Moshchuk, Patrick Monette and Tom Lukaszewicz

    Daniel Cheng voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Moshchuk
    • Patrick Monette
    • Tom Lukaszewicz
    Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 17:43:37 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Patrick Monette (Gerrit)

    unread,
    Jul 31, 2025, 2:06:24 PMJul 31
    to Tom Lukaszewicz, Daniel Cheng, Darryl James, Alex Moshchuk, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Alex Moshchuk and Tom Lukaszewicz

    Patrick Monette voted and added 1 comment

    Votes added by Patrick Monette

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 8 (Latest):
    Patrick Monette . resolved

    chrome/browser/resource_coordinator lgtm

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Moshchuk
    • Tom Lukaszewicz
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 18:06:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Tom Lukaszewicz (Gerrit)

    unread,
    Jul 31, 2025, 2:26:51 PMJul 31
    to Avi Drissman, Alex Moshchuk, Patrick Monette, Daniel Cheng, Darryl James, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Alex Moshchuk, Avi Drissman and Darryl James

    Tom Lukaszewicz added 2 comments

    Patchset-level comments
    Tom Lukaszewicz . resolved

    Avi could you take a look at //content/browser (alexmos@ to cc for OOO)

    File tools/metrics/histograms/metadata/tab/histograms.xml
    Line 276, Patchset 8 (Latest):<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
    Darryl James . unresolved

    This was probably discussed already but the description is split into 2 completely different types of metrics:

    1) When the discarded tab has its WebContents replaced
    2) When the discarded tab has its WebContents retained

    Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?

    Tom Lukaszewicz

    I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).

    It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Moshchuk
    • Avi Drissman
    • Darryl James
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 8
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Avi Drissman <a...@chromium.org>
    Gerrit-Attention: Darryl James <dlj...@chromium.org>
    Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 18:26:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Darryl James <dlj...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Darryl James (Gerrit)

    unread,
    Jul 31, 2025, 2:29:13 PMJul 31
    to Tom Lukaszewicz, Avi Drissman, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Avi Drissman and Tom Lukaszewicz

    Darryl James voted and added 2 comments

    Votes added by Darryl James

    Code-Review+1

    2 comments

    Patchset-level comments
    Darryl James . resolved

    histograms.xml lgtm!

    File tools/metrics/histograms/metadata/tab/histograms.xml
    Line 276, Patchset 8 (Latest):<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
    Darryl James . unresolved

    This was probably discussed already but the description is split into 2 completely different types of metrics:

    1) When the discarded tab has its WebContents replaced
    2) When the discarded tab has its WebContents retained

    Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?

    Tom Lukaszewicz

    I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).

    It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).

    Darryl James

    Ahhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Avi Drissman
    • Tom Lukaszewicz
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Attention: Avi Drissman <a...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 18:29:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Tom Lukaszewicz <tl...@chromium.org>
    Comment-In-Reply-To: Darryl James <dlj...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Tom Lukaszewicz (Gerrit)

    unread,
    Jul 31, 2025, 2:51:03 PMJul 31
    to Darryl James, Avi Drissman, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Avi Drissman

    Tom Lukaszewicz added 1 comment

    File tools/metrics/histograms/metadata/tab/histograms.xml
    Line 276, Patchset 8:<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
    Darryl James . resolved

    This was probably discussed already but the description is split into 2 completely different types of metrics:

    1) When the discarded tab has its WebContents replaced
    2) When the discarded tab has its WebContents retained

    Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?

    Tom Lukaszewicz

    I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).

    It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).

    Darryl James

    Ahhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?

    Tom Lukaszewicz

    Sure, done!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Avi Drissman
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 9
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Avi Drissman <a...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 18:50:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Darryl James (Gerrit)

    unread,
    Jul 31, 2025, 2:57:03 PMJul 31
    to Tom Lukaszewicz, Avi Drissman, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Avi Drissman and Tom Lukaszewicz

    Darryl James voted and added 1 comment

    Votes added by Darryl James

    Code-Review+1

    1 comment

    File tools/metrics/histograms/metadata/tab/histograms.xml
    Line 276, Patchset 8:<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
    Darryl James . resolved

    This was probably discussed already but the description is split into 2 completely different types of metrics:

    1) When the discarded tab has its WebContents replaced
    2) When the discarded tab has its WebContents retained

    Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?

    Tom Lukaszewicz

    I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).

    It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).

    Darryl James

    Ahhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?

    Tom Lukaszewicz

    Sure, done!

    Darryl James

    Thank you!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Avi Drissman
    • Tom Lukaszewicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 9
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Attention: Avi Drissman <a...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 18:56:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Avi Drissman (Gerrit)

    unread,
    Jul 31, 2025, 6:31:14 PMJul 31
    to Tom Lukaszewicz, Avi Drissman, Darryl James, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org
    Attention needed from Tom Lukaszewicz

    Avi Drissman voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Tom Lukaszewicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 9
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 22:31:07 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Tom Lukaszewicz (Gerrit)

    unread,
    Jul 31, 2025, 6:34:10 PMJul 31
    to Avi Drissman, Darryl James, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org

    Tom Lukaszewicz voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 9
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Comment-Date: Thu, 31 Jul 2025 22:33:30 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jul 31, 2025, 7:32:50 PMJul 31
    to Tom Lukaszewicz, Avi Drissman, Darryl James, Alex Moshchuk, Patrick Monette, Daniel Cheng, Shin Kawamura, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, alexmo...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, chrome-gr...@chromium.org, creis...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, navigation...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    [discard] Add latency metric for Tab discarding

    This CL adds Discarding.TabLifecycleUnit.DiscardLatency to
    TabLifecycleUnit.

    This metric measures discard latency for both the retained and
    unretained WebContents discarding implementations.
    Bug: 433627400
    Change-Id: Ia158580050a4a62ff7d67e17917017516872780f
    Reviewed-by: Shin Kawamura <kaw...@google.com>
    Reviewed-by: Patrick Monette <pmon...@chromium.org>
    Commit-Queue: Tom Lukaszewicz <tl...@chromium.org>
    Reviewed-by: Daniel Cheng <dch...@chromium.org>
    Reviewed-by: Darryl James <dlj...@chromium.org>
    Reviewed-by: Avi Drissman <a...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1495154}
    Files:
    • M chrome/browser/resource_coordinator/tab_lifecycle_unit.cc
    • M chrome/browser/resource_coordinator/tab_lifecycle_unit.h
    • M chrome/browser/resource_coordinator/tab_manager_browsertest.cc
    • M content/browser/renderer_host/frame_tree.cc
    • M content/browser/renderer_host/frame_tree.h
    • M content/browser/renderer_host/render_frame_host_impl.cc
    • M content/browser/renderer_host/render_frame_host_impl.h
    • M content/browser/web_contents/web_contents_impl.cc
    • M content/browser/web_contents/web_contents_impl.h
    • M content/browser/web_contents/web_contents_impl_browsertest.cc
    • M content/public/browser/web_contents.h
    • M third_party/blink/public/mojom/frame/frame.mojom
    • M third_party/blink/renderer/core/frame/local_frame_mojo_handler.cc
    • M third_party/blink/renderer/core/frame/local_frame_mojo_handler.h
    • M tools/metrics/histograms/metadata/tab/histograms.xml
    Change size: M
    Delta: 15 files changed, 168 insertions(+), 23 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Daniel Cheng, +1 by Patrick Monette, +1 by Darryl James, +1 by Avi Drissman, +1 by Shin Kawamura
    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: Ia158580050a4a62ff7d67e17917017516872780f
    Gerrit-Change-Number: 6791366
    Gerrit-PatchSet: 10
    Gerrit-Owner: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-Reviewer: Avi Drissman <a...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Shin Kawamura <kaw...@google.com>
    Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
    Gerrit-CC: Alex Moshchuk <ale...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages