|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to parse a heapdump in Phd format. It provides info about the contents of a heapdump in the form of callbacks with one call per object. Note that wherever an array of references appears that null references are not included.
Any exceptions thrown by the listener will be propagated back through the parse call.
Method Summary | |
void |
classDump(long address,
long superAddress,
java.lang.String name,
int instanceSize,
int flags,
int hashCode,
LongEnumeration refs)
This call represents a class object. |
void |
objectArrayDump(long address,
long classAddress,
int flags,
int hashCode,
LongEnumeration refs,
int length)
This call represents an array of objects. |
void |
objectDump(long address,
long classAddress,
int flags,
int hashCode,
LongEnumeration refs)
This call represents a normal object. |
void |
primitiveArrayDump(long address,
int type,
int length,
int flags,
int hashCode)
This call represents a primitive array. |
Method Detail |
public void objectDump(long address, long classAddress, int flags, int hashCode, LongEnumeration refs) throws java.lang.Exception
address
- the address of the objectclassAddress
- the address of the object's class object (which is dumped via classDump)flags
- flags associated with the object (currently unused)hashCode
- the object's hash coderefs
- the enumeration of object references
java.lang.Exception
public void objectArrayDump(long address, long classAddress, int flags, int hashCode, LongEnumeration refs, int length) throws java.lang.Exception
address
- the address of the arrayclassAddress
- the address of the class object for the objects in the arrayflags
- flags associated with the object (currently unused)hashCode
- the object's hash coderefs
- the enumeration of object referenceslength
- the true length of the array in terms of number of references. This includes null refs and so may be greater than refs.length.
java.lang.Exception
public void classDump(long address, long superAddress, java.lang.String name, int instanceSize, int flags, int hashCode, LongEnumeration refs) throws java.lang.Exception
address
- the address of the class objectsuperAddress
- the address of the superclass objectname
- the name of the classinstanceSize
- the size of each instance (object) of this classflags
- flags associated with the object (currently unused)hashCode
- the object's hash coderefs
- the enumeration of this class's static references.
java.lang.Exception
public void primitiveArrayDump(long address, int type, int length, int flags, int hashCode) throws java.lang.Exception
address
- the address of the arraytype
- the type of the array elements (eg T_BYTE, T_BOOLEAN etc)length
- the number of elements in the arrayflags
- flags associated with the object (currently unused)hashCode
- the object's hash code
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |