Search code examples
dartgarbage-collection

What is targetId in getRetainingPath?


In the method getRetainingPath, what is targetId and how can I obtain it?

The object HeapSnapshotObject does not have a field that looks as something that can be used as targetId.


Solution

  • If you invoke eval for an expression that returns the object, the property id of the returned InstanceRef is the needed targetId.