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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addGCRoot
(long id, long referrer, int rootType) void
void
addProperty
(String name, String value) void
beforePass1
(XSnapshotInfo snapshotInfo) void
beforePass2
(IProgressListener monitor) void
cancel()
fillIn
(IPreliminaryIndex index, IProgressListener listener) int
long
getObjectArrayHeapSize
(ClassImpl arrayType, int size) long
getPrimitiveArrayHeapSize
(byte elementType, int size) lookupClass
(long classId) lookupClassByIndex
(int objIndex) lookupClassByName
(String name, boolean failOnMultipleInstances) 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) resolveClassHierarchy
(long classId)
-
Constructor Details
-
HprofParserHandlerImpl
public HprofParserHandlerImpl()
-
-
Method Details
-
beforePass1
- Specified by:
beforePass1
in interfaceIHprofParserHandler
- Throws:
IOException
-
beforePass2
- Specified by:
beforePass2
in interfaceIHprofParserHandler
- Throws:
IOException
SnapshotException
-
fillIn
public IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index, IProgressListener listener) throws IOException - Specified by:
fillIn
in interfaceIHprofParserHandler
- Throws:
IOException
-
cancel
public void cancel()- Specified by:
cancel
in interfaceIHprofParserHandler
-
addProperty
- Specified by:
addProperty
in interfaceIHprofParserHandler
- Throws:
IOException
-
addGCRoot
public void addGCRoot(long id, long referrer, int rootType) - Specified by:
addGCRoot
in interfaceIHprofParserHandler
-
addClass
public void addClass(ClassImpl clazz, long filePosition, int idSize, int instsize) throws IOException - Specified by:
addClass
in interfaceIHprofParserHandler
- Throws:
IOException
-
addObject
- Specified by:
addObject
in interfaceIHprofParserHandler
- Throws:
IOException
-
reportInstanceWithClass
public void reportInstanceWithClass(long id, long filePosition, long classID, int size) - Specified by:
reportInstanceWithClass
in interfaceIHprofParserHandler
-
reportInstanceOfObjectArray
public void reportInstanceOfObjectArray(long id, long filePosition, long arrayClassID) - Specified by:
reportInstanceOfObjectArray
in interfaceIHprofParserHandler
-
reportInstanceOfPrimitiveArray
public void reportInstanceOfPrimitiveArray(long id, long filePosition, int arrayType) - Specified by:
reportInstanceOfPrimitiveArray
in interfaceIHprofParserHandler
-
getIdentifierSize
public int getIdentifierSize()- Specified by:
getIdentifierSize
in interfaceIHprofParserHandler
-
lookupClass
- Specified by:
lookupClass
in interfaceIHprofParserHandler
-
lookupPrimitiveArrayClassByType
- Specified by:
lookupPrimitiveArrayClassByType
in interfaceIHprofParserHandler
-
lookupClassByName
- Specified by:
lookupClassByName
in interfaceIHprofParserHandler
-
lookupClassByIndex
- Specified by:
lookupClassByIndex
in interfaceIHprofParserHandler
-
resolveClassHierarchy
- Specified by:
resolveClassHierarchy
in interfaceIHprofParserHandler
-
mapAddressToId
public int mapAddressToId(long address) - Specified by:
mapAddressToId
in interfaceIHprofParserHandler
-
getSnapshotInfo
- Specified by:
getSnapshotInfo
in interfaceIHprofParserHandler
-
getObjectArrayHeapSize
- Specified by:
getObjectArrayHeapSize
in interfaceIHprofParserHandler
-
getPrimitiveArrayHeapSize
public long getPrimitiveArrayHeapSize(byte elementType, int size) - Specified by:
getPrimitiveArrayHeapSize
in interfaceIHprofParserHandler
-