Package org.eclipse.mat.hprof
Interface IHprofParserHandler
-
- All Known Implementing Classes:
HprofParserHandlerImpl
public interface IHprofParserHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IHprofParserHandler.HeapObject
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CREATION_DATE
static java.lang.String
HEAP_POSITION
static java.lang.String
IDENTIFIER_SIZE
static java.lang.String
REFERENCE_SIZE
static java.lang.String
STREAM_LENGTH
static java.lang.String
VERSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addClass(ClassImpl clazz, long filePosition, int idSize, int instsize)
void
addGCRoot(long id, long referrer, int rootType)
void
addObject(IHprofParserHandler.HeapObject object)
void
addProperty(java.lang.String name, java.lang.String value)
void
beforePass1(XSnapshotInfo snapshotInfo)
void
beforePass2(IProgressListener monitor)
void
cancel()
IIndexReader.IOne2LongIndex
fillIn(IPreliminaryIndex index, IProgressListener listener)
int
getIdentifierSize()
long
getObjectArrayHeapSize(ClassImpl arrayType, int size)
long
getPrimitiveArrayHeapSize(byte elementType, int size)
XSnapshotInfo
getSnapshotInfo()
IClass
lookupClass(long classId)
IClass
lookupClassByIndex(int objIndex)
IClass
lookupClassByName(java.lang.String name, boolean failOnMultipleInstances)
IClass
lookupPrimitiveArrayClassByType(byte elementType)
int
mapAddressToId(long address)
void
reportInstanceOfObjectArray(long id, long filePosition, long arrayClassID)
void
reportInstanceOfPrimitiveArray(long id, long filePosition, int arrayType)
void
reportInstanceWithClass(long id, long filePosition, long classID, int size)
java.util.List<IClass>
resolveClassHierarchy(long classId)
-
-
-
Field Detail
-
IDENTIFIER_SIZE
static final java.lang.String IDENTIFIER_SIZE
- See Also:
- Constant Field Values
-
CREATION_DATE
static final java.lang.String CREATION_DATE
- See Also:
- Constant Field Values
-
VERSION
static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
REFERENCE_SIZE
static final java.lang.String REFERENCE_SIZE
- See Also:
- Constant Field Values
-
STREAM_LENGTH
static final java.lang.String STREAM_LENGTH
- See Also:
- Constant Field Values
-
HEAP_POSITION
static final java.lang.String HEAP_POSITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforePass1
void beforePass1(XSnapshotInfo snapshotInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
beforePass2
void beforePass2(IProgressListener monitor) throws java.io.IOException, SnapshotException
- Throws:
java.io.IOException
SnapshotException
-
fillIn
IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index, IProgressListener listener) throws java.io.IOException
- Throws:
java.io.IOException
-
cancel
void cancel()
-
addProperty
void addProperty(java.lang.String name, java.lang.String value) throws java.io.IOException
- Throws:
java.io.IOException
-
addGCRoot
void addGCRoot(long id, long referrer, int rootType) throws java.io.IOException
- Throws:
java.io.IOException
-
addClass
void addClass(ClassImpl clazz, long filePosition, int idSize, int instsize) throws java.io.IOException
- Throws:
java.io.IOException
-
addObject
void addObject(IHprofParserHandler.HeapObject object) throws java.io.IOException
- Throws:
java.io.IOException
-
reportInstanceWithClass
void reportInstanceWithClass(long id, long filePosition, long classID, int size)
-
reportInstanceOfObjectArray
void reportInstanceOfObjectArray(long id, long filePosition, long arrayClassID)
-
reportInstanceOfPrimitiveArray
void reportInstanceOfPrimitiveArray(long id, long filePosition, int arrayType)
-
getIdentifierSize
int getIdentifierSize()
-
lookupClass
IClass lookupClass(long classId)
-
lookupClassByName
IClass lookupClassByName(java.lang.String name, boolean failOnMultipleInstances)
-
lookupClassByIndex
IClass lookupClassByIndex(int objIndex)
-
lookupPrimitiveArrayClassByType
IClass lookupPrimitiveArrayClassByType(byte elementType)
-
resolveClassHierarchy
java.util.List<IClass> resolveClassHierarchy(long classId)
-
mapAddressToId
int mapAddressToId(long address)
-
getSnapshotInfo
XSnapshotInfo getSnapshotInfo()
-
getObjectArrayHeapSize
long getObjectArrayHeapSize(ClassImpl arrayType, int size)
-
getPrimitiveArrayHeapSize
long getPrimitiveArrayHeapSize(byte elementType, int size)
-
-