com.caucho.env.hprof
Class AbstractHprofDumpHandler

java.lang.Object
  extended by com.caucho.env.hprof.AbstractHprofDumpHandler
All Implemented Interfaces:
HprofDumpHandler
Direct Known Subclasses:
ClassPassDumpHandler, NamePassDumpHandler

public class AbstractHprofDumpHandler
extends java.lang.Object
implements HprofDumpHandler

Parses the JDK's .hprof file.


Constructor Summary
AbstractHprofDumpHandler()
           
 
Method Summary
 void classDump(long classObjectId, long superClassObjectId, long classLoaderId, int instanceSize, int stackId, long signerObjectId, long protectionDomainId)
           
 void classInstanceField(long classObjectId, long fieldNameId, HprofParser.FieldType fieldType)
           
 void classStaticField(long classObjectId, long fieldNameId, long objectId)
           
 void instanceDump(long objectId, int stackId, long classObjectId, int sublen, HprofParser parser)
           
 void loadClass(long objectId, long classNameId, int serialId, int stackTraceId)
           
 void objectArrayDump(long arrayClassId, long objectId, int stackId, int nElements, HprofParser hprofParser)
           
 void primitiveArrayDump(long objectId, int stackId, int nElements, HprofParser.FieldType elementType, int size, HprofParser parser)
           
 void readString(long stringId, int length, HprofParser hprofParser)
           
 void rootJavaFrame(long objectId, int threadId, int frameId)
           
 void rootJniGlobal(long objectId, long jniGlobalId)
           
 void rootJniLocal(long objectId, int threadId, int stackId)
           
 void rootMonitorUsed(long objectId)
           
 void rootStickyClass(long objectId)
           
 void rootThreadBlock(long objectId, int threadId)
           
 void rootThreadObject(long objectId, int threadId, int stackId)
           
 void rootUnknown(long objectId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHprofDumpHandler

public AbstractHprofDumpHandler()
Method Detail

readString

public void readString(long stringId,
                       int length,
                       HprofParser hprofParser)
                throws java.io.IOException
Specified by:
readString in interface HprofDumpHandler
Throws:
java.io.IOException

loadClass

public void loadClass(long objectId,
                      long classNameId,
                      int serialId,
                      int stackTraceId)
Specified by:
loadClass in interface HprofDumpHandler

rootUnknown

public void rootUnknown(long objectId)
Specified by:
rootUnknown in interface HprofDumpHandler

rootJniGlobal

public void rootJniGlobal(long objectId,
                          long jniGlobalId)
Specified by:
rootJniGlobal in interface HprofDumpHandler

rootJniLocal

public void rootJniLocal(long objectId,
                         int threadId,
                         int stackId)
Specified by:
rootJniLocal in interface HprofDumpHandler

rootJavaFrame

public void rootJavaFrame(long objectId,
                          int threadId,
                          int frameId)
Specified by:
rootJavaFrame in interface HprofDumpHandler

rootStickyClass

public void rootStickyClass(long objectId)
Specified by:
rootStickyClass in interface HprofDumpHandler

rootThreadBlock

public void rootThreadBlock(long objectId,
                            int threadId)
Specified by:
rootThreadBlock in interface HprofDumpHandler

rootMonitorUsed

public void rootMonitorUsed(long objectId)
Specified by:
rootMonitorUsed in interface HprofDumpHandler

rootThreadObject

public void rootThreadObject(long objectId,
                             int threadId,
                             int stackId)
Specified by:
rootThreadObject in interface HprofDumpHandler

classDump

public void classDump(long classObjectId,
                      long superClassObjectId,
                      long classLoaderId,
                      int instanceSize,
                      int stackId,
                      long signerObjectId,
                      long protectionDomainId)
               throws java.io.IOException
Specified by:
classDump in interface HprofDumpHandler
Throws:
java.io.IOException

classStaticField

public void classStaticField(long classObjectId,
                             long fieldNameId,
                             long objectId)
Specified by:
classStaticField in interface HprofDumpHandler

classInstanceField

public void classInstanceField(long classObjectId,
                               long fieldNameId,
                               HprofParser.FieldType fieldType)
Specified by:
classInstanceField in interface HprofDumpHandler

instanceDump

public void instanceDump(long objectId,
                         int stackId,
                         long classObjectId,
                         int sublen,
                         HprofParser parser)
                  throws java.io.IOException
Specified by:
instanceDump in interface HprofDumpHandler
Throws:
java.io.IOException

objectArrayDump

public void objectArrayDump(long arrayClassId,
                            long objectId,
                            int stackId,
                            int nElements,
                            HprofParser hprofParser)
                     throws java.io.IOException
Specified by:
objectArrayDump in interface HprofDumpHandler
Throws:
java.io.IOException

primitiveArrayDump

public void primitiveArrayDump(long objectId,
                               int stackId,
                               int nElements,
                               HprofParser.FieldType elementType,
                               int size,
                               HprofParser parser)
                        throws java.io.IOException
Specified by:
primitiveArrayDump in interface HprofDumpHandler
Throws:
java.io.IOException