Hi Camillo, would you please review this change?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const char* HeapProfiler::CopyNameForHeapSnapshot(const char* name) {
nit: let's add a unittest in [1].
[2] test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +1 |
Thanks for reviewing! I've added a test as you suggested.
const char* HeapProfiler::CopyNameForHeapSnapshot(const char* name) {
nit: let's add a unittest in [1].
[2] test/unittests/heap/cppgc-js/unified-heap-snapshot-unittest.cc
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
LGTM from my side, maybe some additional feedback from the GC folks would be welcome.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Thanks for reviewing!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
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.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |