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