com.caucho.env.hprof
Class HprofInstanceManager

java.lang.Object
  extended by com.caucho.env.hprof.HprofInstanceManager

public class HprofInstanceManager
extends java.lang.Object

Parses the JDK's .hprof file.


Constructor Summary
HprofInstanceManager(Path path, HprofClassManager classManager)
           
 
Method Summary
 void addInstance(long objectId, long classId, long genericClassId, int selfSize, boolean isLeaf)
           
 void addLink(long sourceObjectId, long sourceClassId, int fieldId, long targetObjectId)
           
 void close()
           
 int countIncomingLinks(java.lang.String className)
           
 void finalize()
           
 int getLinkCount()
           
 java.lang.String toString()
           
 void updateLeafs()
           
 void updateLinkTargetClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HprofInstanceManager

public HprofInstanceManager(Path path,
                            HprofClassManager classManager)
                     throws java.io.IOException,
                            java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException
Method Detail

close

public void close()

addInstance

public void addInstance(long objectId,
                        long classId,
                        long genericClassId,
                        int selfSize,
                        boolean isLeaf)

addLink

public void addLink(long sourceObjectId,
                    long sourceClassId,
                    int fieldId,
                    long targetObjectId)

updateLinkTargetClass

public void updateLinkTargetClass()

updateLeafs

public void updateLeafs()

getLinkCount

public int getLinkCount()
                 throws java.lang.Exception
Throws:
java.lang.Exception

countIncomingLinks

public int countIncomingLinks(java.lang.String className)
                       throws java.sql.SQLException
Throws:
java.sql.SQLException

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object