-
-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Description
It'd be really useful to have a v8 findrefstree
command for solving memory leaks. This would take a reference to an object, and starting from that node, print out all objects that refer to that object, and its parents, recursively.
Generally speaking this would be helpful for debugging memory leaks, as it's usually pretty obvious what objects are leaking, but not the root object(s) that's holding on to the leaking objects. Currently you'd have to run v8 findrefs -r
over and over an object and its parent until you reached the root, which is slow and very tedious.
Having a command that could recursively print out the tree of objects that refer to a specific object would simplify the debugging process for memory leaks.
pablonm3