memory_instrumentation: Add DetailedMetricsDelegate and Mojo fields [chromium/src : main]

0 views
Skip to first unread message

Adam Walls (Gerrit)

unread,
Apr 6, 2026, 8:57:24 PMApr 6
to chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org

Adam Walls abandoned this change.

View Change

Abandoned Obsolete impl.

Adam Walls abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: abandon
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3c6497f6fa35c196b97573ada8eef9c39b6c247d
Gerrit-Change-Number: 7731108
Gerrit-PatchSet: 1
Gerrit-Owner: Adam Walls <avv...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Adam Walls (Gerrit)

unread,
Apr 9, 2026, 2:27:49 AMApr 9
to chromium...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org

Adam Walls abandoned this change.

View Change

Abandoned obsolete prototype

Adam Walls abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: abandon
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I884b1e6578430670de4551c063b0d5302414da4d
Gerrit-Change-Number: 7742121
satisfied_requirement
unsatisfied_requirement
open
diffy

Adam Walls (Gerrit)

unread,
Apr 9, 2026, 10:07:03 PMApr 9
to Chromium IPC Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Chromium IPC Reviews

Adam Walls added 1 comment

File services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation_features.h
Line 13, Patchset 9:namespace memory_instrumentation {
namespace features {
Adam Walls . resolved

Please fix this WARNING reported by ClangTidy: check: modernize-concat-nested-namespaces

nested namespaces can be concatenated...

check: modernize-concat-nested-namespaces

nested namespaces can be concatenated (https://clang.llvm.org/extra/clang-tidy/checks/modernize/concat-nested-namespaces.html)

(Note: You can add `Skip-Clang-Tidy-Checks: modernize-concat-nested-namespaces` footer to the CL description to skip the check)

(Lint observed on `linux-clang-tidy-rel`, but not on `android-clang-tidy-rel`)

Open in Gerrit

Related details

Attention is currently required from:
  • Chromium IPC Reviews
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
Gerrit-Change-Number: 7732681
Gerrit-PatchSet: 11
Gerrit-Owner: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-Comment-Date: Fri, 10 Apr 2026 02:06:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Apr 9, 2026, 10:13:51 PMApr 9
to Adam Walls, Chromium IPC Reviews, Daniel Cheng, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Daniel Cheng

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: dch...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): dch...@chromium.org


Reviewer source(s):
dch...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
Gerrit-Change-Number: 7732681
Gerrit-PatchSet: 11
Gerrit-Owner: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Comment-Date: Fri, 10 Apr 2026 02:13:14 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Cheng (Gerrit)

unread,
Apr 10, 2026, 1:56:02 AMApr 10
to Adam Walls, Daniel Cheng, Chromium IPC Reviews, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Adam Walls and Joe Mason

Daniel Cheng added 1 comment

Patchset-level comments
File-level comment, Patchset 12 (Latest):
Daniel Cheng . resolved

Well I am an owner for this code, someone who works on resource_coordinator should take a look at this.

(joenotcharles@ is an IPC reviewer and owns the code in question :)

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Walls
  • Joe Mason
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
Gerrit-Change-Number: 7732681
Gerrit-PatchSet: 12
Gerrit-Owner: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: gwsq
Gerrit-Attention: Adam Walls <avv...@chromium.org>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Fri, 10 Apr 2026 05:55:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Apr 10, 2026, 12:15:33 PMApr 10
to Adam Walls, Daniel Cheng, Chromium IPC Reviews, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
Attention needed from Adam Walls

Joe Mason added 3 comments

Patchset-level comments
Joe Mason . unresolved

Why not use the existing MemoryDumpProvider class?

The linked bug doesn't tell me much. Is there a design doc for this?

The memory instrumentation system is already a huge tangle. I don't want to add another abstraction to it if the existing one can serve your needs.

File services/resource_coordinator/public/cpp/memory_instrumentation/detailed_metrics_delegate.h
Line 30, Patchset 12 (Latest): uint64_t total_pss_kb = 0;
Joe Mason . unresolved

Please use base::ByteSize for these, so there's no confusion about the units.

File services/resource_coordinator/public/mojom/memory_instrumentation/memory_instrumentation.mojom
Line 218, Patchset 12 (Latest): map<string, uint64> detailed_stats_kb;
Joe Mason . unresolved

Please use mojo_base.mojom.ByteSize for this. (Other struct members don't use it because they haven't been migrated yet, but we should use it in new code.)

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Walls
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
    Gerrit-Change-Number: 7732681
    Gerrit-PatchSet: 12
    Gerrit-Owner: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Adam Walls <avv...@chromium.org>
    Gerrit-Comment-Date: Fri, 10 Apr 2026 16:15:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Adam Walls (Gerrit)

    unread,
    Apr 10, 2026, 4:38:03 PMApr 10
    to Daniel Cheng, Chromium IPC Reviews, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
    Attention needed from Joe Mason

    Adam Walls added 1 comment

    Patchset-level comments
    Joe Mason . unresolved

    Why not use the existing MemoryDumpProvider class?

    The linked bug doesn't tell me much. Is there a design doc for this?

    The memory instrumentation system is already a huge tangle. I don't want to add another abstraction to it if the existing one can serve your needs.

    Adam Walls

    Thanks for the feedback. Having worked with the service in the past few months, I totally understand! :)

    Yes, we have a Design Doc for this work and have added you for visibility.
    Please note that this DD is still under review within the team. Feel free to add feedback there or add any relevant reviewers.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joe Mason
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
    Gerrit-Change-Number: 7732681
    Gerrit-PatchSet: 12
    Gerrit-Owner: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: gwsq
    Gerrit-Attention: Joe Mason <joenot...@google.com>
    Gerrit-Comment-Date: Fri, 10 Apr 2026 20:37:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joe Mason <joenot...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Joe Mason (Gerrit)

    unread,
    Apr 13, 2026, 5:30:38 PM (11 days ago) Apr 13
    to Adam Walls, Daniel Cheng, Chromium IPC Reviews, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, chromium...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, chrome-gr...@chromium.org, ipc-securi...@chromium.org
    Attention needed from Adam Walls

    Joe Mason added 1 comment

    Patchset-level comments
    Joe Mason . unresolved

    Why not use the existing MemoryDumpProvider class?

    The linked bug doesn't tell me much. Is there a design doc for this?

    The memory instrumentation system is already a huge tangle. I don't want to add another abstraction to it if the existing one can serve your needs.

    Adam Walls

    Thanks for the feedback. Having worked with the service in the past few months, I totally understand! :)

    Yes, we have a Design Doc for this work and have added you for visibility.
    Please note that this DD is still under review within the team. Feel free to add feedback there or add any relevant reviewers.

    Joe Mason

    Commented on the doc.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Adam Walls
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I4b95df9b72d9a1e57085d9794bc951e90fa8a621
    Gerrit-Change-Number: 7732681
    Gerrit-PatchSet: 13
    Gerrit-Owner: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Adam Walls <avv...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Adam Walls <avv...@chromium.org>
    Gerrit-Comment-Date: Mon, 13 Apr 2026 21:30:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Adam Walls <avv...@chromium.org>
    Comment-In-Reply-To: Joe Mason <joenot...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages