'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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source