Package org.eclipse.mat.hprof
Class HprofParserHandlerImpl
java.lang.Object
org.eclipse.mat.hprof.HprofParserHandlerImpl
- All Implemented Interfaces:
IHprofParserHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.mat.hprof.IHprofParserHandler
IHprofParserHandler.HeapObject -
Field Summary
Fields inherited from interface org.eclipse.mat.hprof.IHprofParserHandler
CREATION_DATE, HEAP_POSITION, IDENTIFIER_SIZE, REFERENCE_SIZE, STREAM_LENGTH, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddGCRoot(long id, long referrer, int rootType) voidvoidaddProperty(String name, String value) voidbeforePass1(XSnapshotInfo snapshotInfo) voidbeforePass2(IProgressListener monitor) voidcancel()fillIn(IPreliminaryIndex index, IProgressListener listener) intlonggetObjectArrayHeapSize(ClassImpl arrayType, int size) longgetPrimitiveArrayHeapSize(byte elementType, int size) lookupClass(long classId) lookupClassByIndex(int objIndex) lookupClassByName(String name, boolean failOnMultipleInstances) lookupPrimitiveArrayClassByType(byte elementType) intmapAddressToId(long address) voidreportInstanceOfObjectArray(long id, long filePosition, long arrayClassID) voidreportInstanceOfPrimitiveArray(long id, long filePosition, int arrayType) voidreportInstanceWithClass(long id, long filePosition, long classID, int size) resolveClassHierarchy(long classId)
-
Constructor Details
-
HprofParserHandlerImpl
public HprofParserHandlerImpl()
-
-
Method Details
-
beforePass1
- Specified by:
beforePass1in interfaceIHprofParserHandler- Throws:
IOException
-
beforePass2
- Specified by:
beforePass2in interfaceIHprofParserHandler- Throws:
IOExceptionSnapshotException
-
fillIn
public IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index, IProgressListener listener) throws IOException - Specified by:
fillInin interfaceIHprofParserHandler- Throws:
IOException
-
cancel
public void cancel()- Specified by:
cancelin interfaceIHprofParserHandler
-
addProperty
- Specified by:
addPropertyin interfaceIHprofParserHandler- Throws:
IOException
-
addGCRoot
public void addGCRoot(long id, long referrer, int rootType) - Specified by:
addGCRootin interfaceIHprofParserHandler
-
addClass
public void addClass(ClassImpl clazz, long filePosition, int idSize, int instsize) throws IOException - Specified by:
addClassin interfaceIHprofParserHandler- Throws:
IOException
-
addObject
- Specified by:
addObjectin interfaceIHprofParserHandler- Throws:
IOException
-
reportInstanceWithClass
public void reportInstanceWithClass(long id, long filePosition, long classID, int size) - Specified by:
reportInstanceWithClassin interfaceIHprofParserHandler
-
reportInstanceOfObjectArray
public void reportInstanceOfObjectArray(long id, long filePosition, long arrayClassID) - Specified by:
reportInstanceOfObjectArrayin interfaceIHprofParserHandler
-
reportInstanceOfPrimitiveArray
public void reportInstanceOfPrimitiveArray(long id, long filePosition, int arrayType) - Specified by:
reportInstanceOfPrimitiveArrayin interfaceIHprofParserHandler
-
getIdentifierSize
public int getIdentifierSize()- Specified by:
getIdentifierSizein interfaceIHprofParserHandler
-
lookupClass
- Specified by:
lookupClassin interfaceIHprofParserHandler
-
lookupPrimitiveArrayClassByType
- Specified by:
lookupPrimitiveArrayClassByTypein interfaceIHprofParserHandler
-
lookupClassByName
- Specified by:
lookupClassByNamein interfaceIHprofParserHandler
-
lookupClassByIndex
- Specified by:
lookupClassByIndexin interfaceIHprofParserHandler
-
resolveClassHierarchy
- Specified by:
resolveClassHierarchyin interfaceIHprofParserHandler
-
mapAddressToId
public int mapAddressToId(long address) - Specified by:
mapAddressToIdin interfaceIHprofParserHandler
-
getSnapshotInfo
- Specified by:
getSnapshotInfoin interfaceIHprofParserHandler
-
getObjectArrayHeapSize
- Specified by:
getObjectArrayHeapSizein interfaceIHprofParserHandler
-
getPrimitiveArrayHeapSize
public long getPrimitiveArrayHeapSize(byte elementType, int size) - Specified by:
getPrimitiveArrayHeapSizein interfaceIHprofParserHandler
-