Add a HeapProfiler function for persisting temporary strings [v8/v8 : main]

0 views
Skip to first unread message

Seth Brenith (Gerrit)

unread,
Jun 7, 2024, 2:18:56 PMJun 7
to Camillo Bruni, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Camillo Bruni

Seth Brenith added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Seth Brenith . resolved

Hi Camillo, would you please review this change?

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
Submit Requirements:
  • 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 1
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Comment-Date: Fri, 07 Jun 2024 18:18:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Camillo Bruni (Gerrit)

unread,
Jun 11, 2024, 3:15:56 AMJun 11
to Seth Brenith, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Seth Brenith

Camillo Bruni added 1 comment

File src/api/api.cc
Line 11471, Patchset 1 (Latest):const char* HeapProfiler::CopyNameForHeapSnapshot(const char* name) {
Camillo Bruni . unresolved

nit: let's add a unittest in [1].

[2] test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc

Open in Gerrit

Related details

Attention is currently required from:
  • Seth Brenith
Submit Requirements:
  • 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 1
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Attention: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Comment-Date: Tue, 11 Jun 2024 07:15:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Seth Brenith (Gerrit)

unread,
Jun 11, 2024, 12:18:26 PMJun 11
to Camillo Bruni, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Camillo Bruni

Seth Brenith voted and added 2 comments

Votes added by Seth Brenith

Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Seth Brenith . resolved

Thanks for reviewing! I've added a test as you suggested.

File src/api/api.cc
Line 11471, Patchset 1:const char* HeapProfiler::CopyNameForHeapSnapshot(const char* name) {
Camillo Bruni . resolved

nit: let's add a unittest in [1].

[2] test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc

Seth Brenith

Good idea, thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
Submit Requirements:
  • 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 2
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
Gerrit-Comment-Date: Tue, 11 Jun 2024 16:18:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Camillo Bruni <cbr...@chromium.org>
unsatisfied_requirement
open
diffy

Camillo Bruni (Gerrit)

unread,
Jun 12, 2024, 2:05:42 PMJun 12
to Seth Brenith, Dominik Inführ, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Dominik Inführ and Seth Brenith

Camillo Bruni voted and added 1 comment

Votes added by Camillo Bruni

Code-Review+1

1 comment

Patchset-level comments
Camillo Bruni . resolved

LGTM from my side, maybe some additional feedback from the GC folks would be welcome.

Open in Gerrit

Related details

Attention is currently required from:
  • Dominik Inführ
  • Seth Brenith
Submit Requirements:
  • requirement 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 2
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Attention: Dominik Inführ <dinf...@chromium.org>
Gerrit-Attention: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Comment-Date: Wed, 12 Jun 2024 18:05:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Dominik Inführ (Gerrit)

unread,
Jun 13, 2024, 3:48:26 AMJun 13
to Seth Brenith, Camillo Bruni, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com
Attention needed from Seth Brenith

Dominik Inführ voted and added 1 comment

Votes added by Dominik Inführ

Code-Review+1

1 comment

Patchset-level comments
Dominik Inführ . resolved

Thanks, LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Seth Brenith
Submit Requirements:
  • requirement 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 2
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Attention: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Comment-Date: Thu, 13 Jun 2024 07:48:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Seth Brenith (Gerrit)

unread,
Jun 13, 2024, 10:54:41 AMJun 13
to Dominik Inführ, Camillo Bruni, V8 LUCI CQ, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

Seth Brenith voted and added 1 comment

Votes added by Seth Brenith

Commit-Queue+2

1 comment

Patchset-level comments
Seth Brenith . resolved

Thanks for reviewing!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement 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: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 2
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Comment-Date: Thu, 13 Jun 2024 14:54:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

V8 LUCI CQ (Gerrit)

unread,
Jun 13, 2024, 11:37:00 AMJun 13
to Seth Brenith, Dominik Inführ, Camillo Bruni, cbruni...@chromium.org, devtools-...@chromium.org, oilpan-r...@chromium.org, v8-re...@googlegroups.com

V8 LUCI CQ submitted the change

Change information

Commit message:
Add a HeapProfiler function for persisting temporary strings

Embedders which implement NameProvider may want to specify formatted
strings as names for objects, rather than static strings. Doing so is
somewhat difficult, because the embedder must manage the lifetime of any
allocated string and ensure it stays alive until V8 is done generating
the snapshot. This change adds a new function so that embedders can
easily transfer a string into the HeapProfiler while it is taking a
snapshot.
Bug: 343341610
Change-Id: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Commit-Queue: Seth Brenith <seth.b...@microsoft.com>
Reviewed-by: Camillo Bruni <cbr...@chromium.org>
Reviewed-by: Dominik Inführ <dinf...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#94444}
Files:
  • M include/cppgc/name-provider.h
  • M include/v8-profiler.h
  • M src/api/api.cc
  • M src/profiler/heap-profiler.cc
  • M src/profiler/heap-profiler.h
  • M test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
Change size: M
Delta: 6 files changed, 59 insertions(+), 0 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Dominik Inführ, +1 by Camillo Bruni
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I75d0ff37367b9f30c3854c9c807e33d160a10fc4
Gerrit-Change-Number: 5599955
Gerrit-PatchSet: 3
Gerrit-Owner: Seth Brenith <seth.b...@microsoft.com>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Dominik Inführ <dinf...@chromium.org>
Gerrit-Reviewer: Seth Brenith <seth.b...@microsoft.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages