com.caucho.env.hprof
Class NamePassDumpHandler

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

public class NamePassDumpHandler
extends AbstractHprofDumpHandler

Parses the JDK's .hprof file.


Constructor Summary
NamePassDumpHandler(HprofClassManager classManager, LongKeyHashMap<StringHolder> stringHolderMap)
           
 
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)
           
protected  HprofClassManager getClassManager()
           
 void loadClass(long classObjectId, long classNameId, int serialId, int stackTraceId)
           
 void parse(Path path)
           
protected  void parseTag(HprofParser.TagType tag, HprofParser parser)
           
 void readString(long stringId, int length, HprofParser hprofParser)
           
 
Methods inherited from class com.caucho.env.hprof.AbstractHprofDumpHandler
classStaticField, instanceDump, objectArrayDump, primitiveArrayDump, rootJavaFrame, rootJniGlobal, rootJniLocal, rootMonitorUsed, rootStickyClass, rootThreadBlock, rootThreadObject, rootUnknown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamePassDumpHandler

public NamePassDumpHandler(HprofClassManager classManager,
                           LongKeyHashMap<StringHolder> stringHolderMap)
Method Detail

getClassManager

protected final HprofClassManager getClassManager()

parse

public void parse(Path path)
           throws java.io.IOException
Throws:
java.io.IOException

parseTag

protected void parseTag(HprofParser.TagType tag,
                        HprofParser parser)
                 throws java.io.IOException
Throws:
java.io.IOException

readString

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

loadClass

public void loadClass(long classObjectId,
                      long classNameId,
                      int serialId,
                      int stackTraceId)
Specified by:
loadClass in interface HprofDumpHandler
Overrides:
loadClass in class AbstractHprofDumpHandler

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
Overrides:
classDump in class AbstractHprofDumpHandler
Throws:
java.io.IOException

classInstanceField

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