org.eclipse.mat.hprof
Interface IHprofParserHandler

All Known Implementing Classes:
HprofParserHandlerImpl

public interface IHprofParserHandler


Nested Class Summary
static class IHprofParserHandler.HeapObject
           
 
Field Summary
static java.lang.String CREATION_DATE
           
static java.lang.String IDENTIFIER_SIZE
           
static java.lang.String REFERENCE_SIZE
           
static java.lang.String VERSION
           
 
Method Summary
 void addClass(ClassImpl clazz, long filePosition)
           
 void addGCRoot(long id, long referrer, int rootType)
           
 void addObject(IHprofParserHandler.HeapObject object, long filePosition)
           
 void addProperty(java.lang.String name, java.lang.String value)
           
 void beforePass1(XSnapshotInfo snapshotInfo)
           
 void beforePass2(IProgressListener monitor)
           
 void cancel()
           
 IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index)
           
 HashMapLongObject<java.lang.String> getConstantPool()
           
 int getIdentifierSize()
           
 long getObjectArrayHeapSize(ClassImpl arrayType, int size)
           
 long getPrimitiveArrayHeapSize(byte elementType, int size)
           
 XSnapshotInfo getSnapshotInfo()
           
 IClass lookupClass(long classId)
           
 IClass lookupClassByIndex(int objIndex)
           
 IClass lookupClassByName(java.lang.String name, boolean failOnMultipleInstances)
           
 int mapAddressToId(long address)
           
 void reportInstance(long id, long filePosition)
           
 void reportRequiredObjectArray(long arrayClassID)
           
 void reportRequiredPrimitiveArray(int arrayType)
           
 java.util.List<IClass> resolveClassHierarchy(long classId)
           
 

Field Detail

IDENTIFIER_SIZE

static final java.lang.String IDENTIFIER_SIZE
See Also:
Constant Field Values

CREATION_DATE

static final java.lang.String CREATION_DATE
See Also:
Constant Field Values

VERSION

static final java.lang.String VERSION
See Also:
Constant Field Values

REFERENCE_SIZE

static final java.lang.String REFERENCE_SIZE
See Also:
Constant Field Values
Method Detail

beforePass1

void beforePass1(XSnapshotInfo snapshotInfo)
                 throws java.io.IOException
Throws:
java.io.IOException

beforePass2

void beforePass2(IProgressListener monitor)
                 throws java.io.IOException,
                        SnapshotException
Throws:
java.io.IOException
SnapshotException

fillIn

IIndexReader.IOne2LongIndex fillIn(IPreliminaryIndex index)
                                   throws java.io.IOException
Throws:
java.io.IOException

cancel

void cancel()

addProperty

void addProperty(java.lang.String name,
                 java.lang.String value)
                 throws java.io.IOException
Throws:
java.io.IOException

addGCRoot

void addGCRoot(long id,
               long referrer,
               int rootType)
               throws java.io.IOException
Throws:
java.io.IOException

addClass

void addClass(ClassImpl clazz,
              long filePosition)
              throws java.io.IOException
Throws:
java.io.IOException

addObject

void addObject(IHprofParserHandler.HeapObject object,
               long filePosition)
               throws java.io.IOException
Throws:
java.io.IOException

reportInstance

void reportInstance(long id,
                    long filePosition)

reportRequiredObjectArray

void reportRequiredObjectArray(long arrayClassID)

reportRequiredPrimitiveArray

void reportRequiredPrimitiveArray(int arrayType)

getIdentifierSize

int getIdentifierSize()

getConstantPool

HashMapLongObject<java.lang.String> getConstantPool()

lookupClass

IClass lookupClass(long classId)

lookupClassByName

IClass lookupClassByName(java.lang.String name,
                         boolean failOnMultipleInstances)

lookupClassByIndex

IClass lookupClassByIndex(int objIndex)

resolveClassHierarchy

java.util.List<IClass> resolveClassHierarchy(long classId)

mapAddressToId

int mapAddressToId(long address)

getSnapshotInfo

XSnapshotInfo getSnapshotInfo()

getObjectArrayHeapSize

long getObjectArrayHeapSize(ClassImpl arrayType,
                            int size)

getPrimitiveArrayHeapSize

long getPrimitiveArrayHeapSize(byte elementType,
                               int size)