MAT library API [message #509680] |
Sun, 24 January 2010 12:31  |
Eclipse User |
|
|
|
Do the MAT libraries have a documented API? I want to dynamically generate a memory dump then parse and query the resulting dump programmatically.
I can't find any documentation on this topic.
Any help would be appreciated.
|
|
|
Re: MAT library API [message #509774 is a reply to message #509680] |
Mon, 25 January 2010 06:15  |
Eclipse User |
|
|
|
A good question. Unfortunately I can't give you the best possible answer.
It's like this - at the moment we don't have any published documentation on how to develop with MAT APIs. There is also no javadoc published, although (most of) the API classes contain javadoc inside.
I would suggest that you start with our Wiki page for contributors:
http://wiki.eclipse.org/index.php?title=MemoryAnalyzer/Contr ibutor_Reference
It describes our SVN location and how to get started with getting and building the sources.
Most of the API is contained in the org.eclipse.mat.api plugin.
You may look into the following two classes as a starting point:
org.eclipse.mat.snapshot.SnapshotFactory
- this is how you can open a heap dump
org.eclipse.mat.snapshot.ISnapshot
- this is the "central" interface, having all the methods to get to the different classes, their instances, single objects, retained sets, etc... The interface has javadoc in it.
Currently it is not possible to generate the heap dump from within the tool. There are some efforts in this direction - see bugzilla entry https://bugs.eclipse.org/bugs/show_bug.cgi?id=229449
And about using the APIs - we are in the process of getting ready for our graduation, including our 1.0 release. In this process some of the APIs may be changed. The following bugzilla entry should track such changes: https://bugs.eclipse.org/bugs/show_bug.cgi?id=299371
I'll be very interested to get your feedback on the API if you decide to give it a try. And your feedback on the tool in general - any suggestions, comments, critique ...
Let me know if this explanation helps.
|
|
|
Powered by
FUDForum. Page generated in 0.22935 seconds