org.eclipse.mat.hprof
Class HprofParserHandlerImpl
java.lang.Object
org.eclipse.mat.hprof.HprofParserHandlerImpl
- All Implemented Interfaces:
- IHprofParserHandler
public class HprofParserHandlerImpl
- extends Object
- implements IHprofParserHandler
HprofParserHandlerImpl
public HprofParserHandlerImpl()
beforePass1
public void beforePass1(XSnapshotInfo snapshotInfo)
throws IOException
- Specified by:
beforePass1 in interface IHprofParserHandler
- Throws:
IOException
beforePass2
public void beforePass2(IProgressListener monitor)
throws IOException,
SnapshotException
- Specified by:
beforePass2 in interface IHprofParserHandler
- Throws:
IOException
SnapshotException
fillIn
public IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index)
throws IOException
- Specified by:
fillIn in interface IHprofParserHandler
- Throws:
IOException
cancel
public void cancel()
- Specified by:
cancel in interface IHprofParserHandler
addProperty
public void addProperty(String name,
String value)
throws IOException
- Specified by:
addProperty in interface IHprofParserHandler
- Throws:
IOException
addGCRoot
public void addGCRoot(long id,
long referrer,
int rootType)
- Specified by:
addGCRoot in interface IHprofParserHandler
addClass
public void addClass(ClassImpl clazz,
long filePosition)
throws IOException
- Specified by:
addClass in interface IHprofParserHandler
- Throws:
IOException
addObject
public void addObject(IHprofParserHandler.HeapObject object,
long filePosition)
throws IOException
- Specified by:
addObject in interface IHprofParserHandler
- Throws:
IOException
reportInstance
public void reportInstance(long id,
long filePosition)
- Specified by:
reportInstance in interface IHprofParserHandler
reportRequiredObjectArray
public void reportRequiredObjectArray(long arrayClassID)
- Specified by:
reportRequiredObjectArray in interface IHprofParserHandler
reportRequiredPrimitiveArray
public void reportRequiredPrimitiveArray(int arrayType)
- Specified by:
reportRequiredPrimitiveArray in interface IHprofParserHandler
getIdentifierSize
public int getIdentifierSize()
- Specified by:
getIdentifierSize in interface IHprofParserHandler
getConstantPool
public HashMapLongObject<String> getConstantPool()
- Specified by:
getConstantPool in interface IHprofParserHandler
lookupClass
public ClassImpl lookupClass(long classId)
- Specified by:
lookupClass in interface IHprofParserHandler
lookupClassByName
public IClass lookupClassByName(String name,
boolean failOnMultipleInstances)
- Specified by:
lookupClassByName in interface IHprofParserHandler
lookupClassByIndex
public IClass lookupClassByIndex(int objIndex)
- Specified by:
lookupClassByIndex in interface IHprofParserHandler
resolveClassHierarchy
public List<IClass> resolveClassHierarchy(long classId)
- Specified by:
resolveClassHierarchy in interface IHprofParserHandler
mapAddressToId
public int mapAddressToId(long address)
- Specified by:
mapAddressToId in interface IHprofParserHandler
getSnapshotInfo
public XSnapshotInfo getSnapshotInfo()
- Specified by:
getSnapshotInfo in interface IHprofParserHandler
getObjectArrayHeapSize
public long getObjectArrayHeapSize(ClassImpl arrayType,
int size)
- Specified by:
getObjectArrayHeapSize in interface IHprofParserHandler
getPrimitiveArrayHeapSize
public long getPrimitiveArrayHeapSize(byte elementType,
int size)
- Specified by:
getPrimitiveArrayHeapSize in interface IHprofParserHandler