Yourkit API heap dump analysis

724 views Asked by At

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.

1

There are 1 answers

0
Martin Serrano On

I guess it depends on what you mean by inspect. The API does provide some ways to count and get the size of sets of objects. The set specification is pretty extensive. The Yourkit business model is to allow free use of the APIs but charge for the UI. So it is against their interests to allow too much to be done in the API.