public class HprofParserHandlerImpl extends Object implements IHprofParserHandler
IHprofParserHandler.HeapObject
CREATION_DATE, IDENTIFIER_SIZE, REFERENCE_SIZE, VERSION
Constructor and Description |
---|
HprofParserHandlerImpl() |
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) throws IOException
addClass
in interface IHprofParserHandler
IOException
public void addObject(IHprofParserHandler.HeapObject object, long filePosition) throws IOException
addObject
in interface IHprofParserHandler
IOException
public void reportInstance(long id, long filePosition)
reportInstance
in interface IHprofParserHandler
public void reportRequiredObjectArray(long arrayClassID)
reportRequiredObjectArray
in interface IHprofParserHandler
public void reportRequiredPrimitiveArray(int arrayType)
reportRequiredPrimitiveArray
in interface IHprofParserHandler
public void reportRequiredClass(long classID, int size)
reportRequiredClass
in interface IHprofParserHandler
public int getIdentifierSize()
getIdentifierSize
in interface IHprofParserHandler
public HashMapLongObject<String> getConstantPool()
getConstantPool
in interface IHprofParserHandler
public ClassImpl lookupClass(long classId)
lookupClass
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