Is it possible to use yourkit API (https://www.yourkit.com/docs/java/api/index.html) to inspect the objects in the heap? Inspecting means, for example, getting the values of the fields of objects in the heap.
The class MemorySnapshot seems rather limited.