[base] Add feature to group MemoryDumpProviders which can run on same sequence. [chromium/src : main]

0 views
Skip to first unread message

Francois Pierre Doray (Gerrit)

unread,
Feb 2, 2026, 1:33:39 PM (5 days ago) Feb 2
to Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Joe Mason

Francois Pierre Doray added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Francois Pierre Doray . resolved

Please take a look. Thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Mason
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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
Gerrit-Change-Number: 7539633
Gerrit-PatchSet: 8
Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Mon, 02 Feb 2026 18:33:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Feb 2, 2026, 4:46:29 PM (5 days ago) Feb 2
to Francois Pierre Doray, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Francois Pierre Doray

Joe Mason voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Francois Pierre Doray
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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
    Gerrit-Change-Number: 7539633
    Gerrit-PatchSet: 8
    Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
    Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
    Gerrit-Comment-Date: Mon, 02 Feb 2026 21:46:20 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Joe Mason (Gerrit)

    unread,
    Feb 2, 2026, 4:46:46 PM (5 days ago) Feb 2
    to Francois Pierre Doray, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Francois Pierre Doray

    Joe Mason voted Code-Review+0

    Code-Review+0
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Francois Pierre Doray
    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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
      Gerrit-Change-Number: 7539633
      Gerrit-PatchSet: 8
      Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
      Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
      Gerrit-Comment-Date: Mon, 02 Feb 2026 21:46:43 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joe Mason (Gerrit)

      unread,
      Feb 2, 2026, 4:48:38 PM (5 days ago) Feb 2
      to Francois Pierre Doray, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Francois Pierre Doray

      Joe Mason voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Francois Pierre Doray
      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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
        Gerrit-Change-Number: 7539633
        Gerrit-PatchSet: 8
        Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Joe Mason <joenot...@google.com>
        Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Comment-Date: Mon, 02 Feb 2026 21:48:29 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Francois Pierre Doray (Gerrit)

        unread,
        Feb 2, 2026, 4:52:54 PM (5 days ago) Feb 2
        to Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Francois Pierre Doray 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
        • 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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
        Gerrit-Change-Number: 7539633
        Gerrit-PatchSet: 8
        Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Joe Mason <joenot...@google.com>
        Gerrit-Comment-Date: Mon, 02 Feb 2026 21:52:45 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Feb 2, 2026, 5:01:05 PM (5 days ago) Feb 2
        to Francois Pierre Doray, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        [base] Add feature to group MemoryDumpProviders which can run on same sequence.

        Previously, MemoryDumpManager::CreateProcessDump ran this algorithm:

        1. Group all MemoryDumpProviders by TaskRunner.
        2. Get the next MemoryDumpProvider.
        3. Is it bound to a TaskRunner which RunsTasksInCurrentSequence?
        If yes: Go to step 4.
        If no: Go to step 5.
        4. Run the MemoryDumpProvider, remove it from the list,
        and go back to step 2.
        5. Post a task to the MemoryDumpProvider's TaskRunner,
        and go back to step 2.

        This algorithm did not attempt to group MemoryDumpProviders associated
        with different TaskRunners which can run on the same sequence. This
        could result in:
        - More task posting than necessary
        - If a MemoryDumpProvider is associated with a frozen TaskRunner,
        it would not run, even if its TaskRunner indicates that it
        could have run synchronously as part of the initial
        MemoryDumpManager::CreateProcessDump call.

        This CL solves these problem by introducing a feature which groups
        MemoryDumpProvider which can run on the same sequence together (even if
        that's through different TaskRunners).
        Bug: 450929521
        Change-Id: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
        Reviewed-by: Joe Mason <joenot...@google.com>
        Commit-Queue: Francois Pierre Doray <fdo...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1578380}
        Files:
        • M base/trace_event/measured_memory_dump_provider_info.cc
        • M base/trace_event/measured_memory_dump_provider_info.h
        • M base/trace_event/memory_dump_manager.cc
        Change size: M
        Delta: 3 files changed, 65 insertions(+), 36 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Joe Mason
        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: Id2a7e6fa147ce663d44f921c7a9c646e09f78f9f
        Gerrit-Change-Number: 7539633
        Gerrit-PatchSet: 9
        Gerrit-Owner: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
        Gerrit-Reviewer: Joe Mason <joenot...@google.com>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages