Display size and count of blink dom objects in memory-infra. The blink contains two type of object:the dom objects have explicitly specified names via using NameProvider, and the cpp internal objects have hide names 'InternalNode'. Now we must enable CPPGC_SUPPORTS_OBJECT_NAMES macro to show the name and size of all blink objects in memory-infra. I think it is better that display dom objects count and size without enabling CPPGC_SUPPORTS_OBJECT_NAMES macro in release version. It will provide great convenience to help us debug the memory issues of the blink object. [v8/v8 : main]

0 views
Skip to first unread message

Omer Katz (Gerrit)

unread,
Sep 16, 2025, 3:48:05 AMSep 16
to 鹏强王, Michael Lippautz, Hannes Payer, AyeAye, v8-re...@googlegroups.com, cbruni...@chromium.org, oilpan-r...@chromium.org, mlippau...@chromium.org
Attention needed from Michael Lippautz and 鹏强王

Omer Katz added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Omer Katz . resolved

Names are intentionally omitted in production builds (unless explicitly enabled) to avoid increasing the binary size.
Always having the names available would indeed be convenient for debugging, but it's not currently an option.
You could try using "Chrome for Testing" instead (see https://developer.chrome.com/blog/chrome-for-testing/), which I believe should have the names enabled.

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
  • 鹏强王
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I436cd08e0ec337f72ac95529f0a73d734d2c0bd3
Gerrit-Change-Number: 6950858
Gerrit-PatchSet: 1
Gerrit-Owner: 鹏强王 <wangpe...@bytedance.com>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: 鹏强王 <wangpe...@bytedance.com>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Sep 2025 07:48:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

鹏强王 (Gerrit)

unread,
Sep 16, 2025, 4:19:15 AMSep 16
to Michael Lippautz, Omer Katz, Hannes Payer, AyeAye, v8-re...@googlegroups.com, cbruni...@chromium.org, oilpan-r...@chromium.org, mlippau...@chromium.org
Attention needed from Michael Lippautz and Omer Katz

鹏强王 added 1 comment

Patchset-level comments
Omer Katz . resolved

Names are intentionally omitted in production builds (unless explicitly enabled) to avoid increasing the binary size.
Always having the names available would indeed be convenient for debugging, but it's not currently an option.
You could try using "Chrome for Testing" instead (see https://developer.chrome.com/blog/chrome-for-testing/), which I believe should have the names enabled.

鹏强王

I approve of your opinion that name omitted in production builds to avoid increasing the binary size. But some blink objects has explicitly specified names inherited NameProvider, we can obtain these blink objects name using NameProvide::GetHumanReadableName, the Human-readable name of these object is used to show in devtools heap snapshot. it doesn't increase the binary size. I think it is necessary that show these blink object in memory-infra.

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Lippautz
  • Omer Katz
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I436cd08e0ec337f72ac95529f0a73d734d2c0bd3
Gerrit-Change-Number: 6950858
Gerrit-PatchSet: 1
Gerrit-Owner: 鹏强王 <wangpe...@bytedance.com>
Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
Gerrit-CC: Hannes Payer <hpa...@chromium.org>
Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
Gerrit-Attention: Omer Katz <omer...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Sep 2025 08:19:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Omer Katz <omer...@chromium.org>
unsatisfied_requirement
open
diffy

Michael Lippautz (Gerrit)

unread,
Sep 16, 2025, 7:21:45 AMSep 16
to 鹏强王, Omer Katz, Hannes Payer, AyeAye, v8-re...@googlegroups.com, cbruni...@chromium.org, oilpan-r...@chromium.org, mlippau...@chromium.org
Attention needed from Omer Katz and 鹏强王

Michael Lippautz added 3 comments

Patchset-level comments
Michael Lippautz . resolved

This is not exposting the names but merely providing stats that squash all types under "InternalType", right?

Commit Message
Line 7, Patchset 1 (Latest):Display size and count of blink dom objects in memory-infra.
Michael Lippautz . unresolved

Please add a title to your CL and format it accordingly.
"""
Title

Description...

Bug:
"""

File include/cppgc/heap-statistics.h
Line 59, Patchset 1 (Latest): * Statistics for object allocated on the page. The dom objects name was
Michael Lippautz . unresolved

We generally don't refer to terms like DOM from V8 as that concept doesn't exist here on the API.

If we go through with this change, this would need to saysomething along the lnes of

"Statistics for object allocated on the page. Note that objects without names are coerced to a single type."

Open in Gerrit

Related details

Attention is currently required from:
  • Omer Katz
  • 鹏强王
Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not 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: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I436cd08e0ec337f72ac95529f0a73d734d2c0bd3
    Gerrit-Change-Number: 6950858
    Gerrit-PatchSet: 1
    Gerrit-Owner: 鹏强王 <wangpe...@bytedance.com>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: 鹏强王 <wangpe...@bytedance.com>
    Gerrit-Attention: Omer Katz <omer...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Sep 2025 11:20:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    鹏强王 (Gerrit)

    unread,
    Sep 16, 2025, 7:43:48 AMSep 16
    to Michael Lippautz, Omer Katz, Hannes Payer, AyeAye, v8-re...@googlegroups.com, cbruni...@chromium.org, oilpan-r...@chromium.org, mlippau...@chromium.org
    Attention needed from Michael Lippautz and Omer Katz

    鹏强王 added 1 comment

    Patchset-level comments
    Michael Lippautz . resolved

    This is not exposting the names but merely providing stats that squash all types under "InternalType", right?

    鹏强王

    If an object inherit from class NameProvider and override NameInHeapSnapshot function, it will display name returned by this function, just like in devtool heap snapshot, and other object will squash all types under "InternalType".

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Michael Lippautz
    • Omer Katz
    Submit Requirements:
    • requirement is not satisfiedCode-Owners
    • requirement is not 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: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I436cd08e0ec337f72ac95529f0a73d734d2c0bd3
    Gerrit-Change-Number: 6950858
    Gerrit-PatchSet: 1
    Gerrit-Owner: 鹏强王 <wangpe...@bytedance.com>
    Gerrit-Reviewer: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Reviewer: Omer Katz <omer...@chromium.org>
    Gerrit-CC: Hannes Payer <hpa...@chromium.org>
    Gerrit-Attention: Michael Lippautz <mlip...@chromium.org>
    Gerrit-Attention: Omer Katz <omer...@chromium.org>
    Gerrit-Comment-Date: Tue, 16 Sep 2025 11:43:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Michael Lippautz <mlip...@chromium.org>
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages