Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Memory Analyzer (MAT) » DTFJ queries
DTFJ queries [message #11179] Tue, 07 July 2009 05:09 Go to previous message
Andrew Johnson is currently offline Andrew Johnson
Messages: 96
Registered: July 2009
Member
It is possible to get access to the DTFJ Image and JavaRuntime handles
when writing MAT queries for dumps from IBM virtual machines.

This is done using the ISnapshot.getSnapshotAddons() call. This API takes
the class of the object required and returns an instance of that class.
The DTFJ adapter can return com.ibm.dtfj.image.Image or
com.ibm.dtfj.java.JavaRuntime objects.

You'll need to add the com.ibm.dtfj.api plug-in in the required plug-ins
list for your query plug-in so you get access to Image or JavaRuntime.

I haven't done much with this yet, so this information could be subject to
change if it doesn't work as we would like. Please let me know if this is
useful.

Image im = snapshot.getSnapshotAddons(Image.class);
JavaRuntime jr = snapshot.getSnapshotAddons(JavaRuntime.class);


/**
* Get additional JVM information, if available.
* <p>
*
* @return SnapshotAddons - extended information, e.g. perm info, OoM
stack
* trace info, JVM arguments, etc.
* @throws SnapshotException
*/
public <A> A getSnapshotAddons(Class<A> addon) throws
SnapshotException;
 
Read Message
Read Message
Previous Topic:update site zip
Next Topic:Setting up MAT with eclipse
Goto Forum:
  


Current Time: Sat May 25 23:51:40 EDT 2013

Powered by FUDForum. Page generated in 0.01967 seconds