public class HprofParserHandlerImpl extends Object implements IHprofParserHandler
IHprofParserHandler.HeapObjectCREATION_DATE, IDENTIFIER_SIZE, REFERENCE_SIZE, STREAM_LENGTH, VERSION| Constructor and Description |
|---|
HprofParserHandlerImpl() |
| Modifier and Type | Method and 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(String name,
String value) |
void |
beforePass1(XSnapshotInfo snapshotInfo) |
void |
beforePass2(IProgressListener monitor) |
void |
cancel() |
IIndexReader.IOne2LongIndex |
fillIn(IPreliminaryIndex index) |
int |
getIdentifierSize() |
long |
getObjectArrayHeapSize(ClassImpl arrayType,
int size) |
long |
getPrimitiveArrayHeapSize(byte elementType,
int size) |
XSnapshotInfo |
getSnapshotInfo() |
ClassImpl |
lookupClass(long classId) |
IClass |
lookupClassByIndex(int objIndex) |
IClass |
lookupClassByName(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) |
List<IClass> |
resolveClassHierarchy(long classId) |
public void beforePass1(XSnapshotInfo snapshotInfo) throws IOException
beforePass1 in interface IHprofParserHandlerIOExceptionpublic void beforePass2(IProgressListener monitor) throws IOException, SnapshotException
beforePass2 in interface IHprofParserHandlerIOExceptionSnapshotExceptionpublic IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index) throws IOException
fillIn in interface IHprofParserHandlerIOExceptionpublic void cancel()
cancel in interface IHprofParserHandlerpublic void addProperty(String name, String value) throws IOException
addProperty in interface IHprofParserHandlerIOExceptionpublic void addGCRoot(long id,
long referrer,
int rootType)
addGCRoot in interface IHprofParserHandlerpublic void addClass(ClassImpl clazz, long filePosition, int idSize, int instsize) throws IOException
addClass in interface IHprofParserHandlerIOExceptionpublic void addObject(IHprofParserHandler.HeapObject object) throws IOException
addObject in interface IHprofParserHandlerIOExceptionpublic void reportInstanceWithClass(long id,
long filePosition,
long classID,
int size)
reportInstanceWithClass in interface IHprofParserHandlerpublic void reportInstanceOfObjectArray(long id,
long filePosition,
long arrayClassID)
reportInstanceOfObjectArray in interface IHprofParserHandlerpublic void reportInstanceOfPrimitiveArray(long id,
long filePosition,
int arrayType)
reportInstanceOfPrimitiveArray in interface IHprofParserHandlerpublic int getIdentifierSize()
getIdentifierSize in interface IHprofParserHandlerpublic ClassImpl lookupClass(long classId)
lookupClass in interface IHprofParserHandlerpublic IClass lookupPrimitiveArrayClassByType(byte elementType)
lookupPrimitiveArrayClassByType in interface IHprofParserHandlerpublic IClass lookupClassByName(String name, boolean failOnMultipleInstances)
lookupClassByName in interface IHprofParserHandlerpublic IClass lookupClassByIndex(int objIndex)
lookupClassByIndex in interface IHprofParserHandlerpublic List<IClass> resolveClassHierarchy(long classId)
resolveClassHierarchy in interface IHprofParserHandlerpublic int mapAddressToId(long address)
mapAddressToId in interface IHprofParserHandlerpublic XSnapshotInfo getSnapshotInfo()
getSnapshotInfo in interface IHprofParserHandlerpublic long getObjectArrayHeapSize(ClassImpl arrayType, int size)
getObjectArrayHeapSize in interface IHprofParserHandlerpublic long getPrimitiveArrayHeapSize(byte elementType,
int size)
getPrimitiveArrayHeapSize in interface IHprofParserHandler