com.caucho.env.hprof
Class HprofInstanceManager
java.lang.Object
com.caucho.env.hprof.HprofInstanceManager
public class HprofInstanceManager
- extends java.lang.Object
Parses the JDK's .hprof file.
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HprofInstanceManager
public HprofInstanceManager(Path path,
HprofClassManager classManager)
throws java.io.IOException,
java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
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