-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
src: track memory retainer fields #26161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,6 +197,17 @@ class MemoryTracker { | |
inline void Track(const MemoryRetainer* retainer, | ||
const char* edge_name = nullptr); | ||
|
||
// Useful for parents that do not wish to perform manual | ||
// adjustments to its `SelfSize()` when embedding retainer | ||
// objects inline. | ||
// Put a memory container into the graph, create an edge from | ||
// the current node if there is one on the stack - there should | ||
// be one, of the container object which the current field is part of. | ||
// Reduce the size of memory from the container so as to avoid | ||
// duplication in accounting. | ||
inline void TrackInlineField(const MemoryRetainer* retainer, | ||
|
||
const char* edge_name = nullptr); | ||
|
||
inline v8::EmbedderGraph* graph() { return graph_; } | ||
inline v8::Isolate* isolate() { return isolate_; } | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.