com.caucho.profile
Class HeapDump

java.lang.Object
  extended by com.caucho.profile.HeapDump
Direct Known Subclasses:
ProHeapDump

public class HeapDump
extends java.lang.Object

Resin Professional capabilities to dump the heap.


Constructor Summary
protected HeapDump()
           
 
Method Summary
static HeapDump create()
          Creates/returns the HeapDump instance.
 java.lang.Object dump()
          Returns an array of the HeapDump entries.
 java.lang.Object getLastHeapDump()
          Returns the last heap dump
static boolean isAvailable()
          Checks if the heap is available
 java.lang.String jsonHeapDump()
           
 void logHeapDump(java.util.logging.Logger log, java.util.logging.Level level)
           
 void writeExtendedHeapDump(java.io.PrintWriter out)
          Writes a text value of the heap dump to an output stream.
 void writeHeapDump(java.io.PrintWriter out)
          Writes a text value of the heap dump to an output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapDump

protected HeapDump()
Method Detail

create

public static HeapDump create()
Creates/returns the HeapDump instance. Will throw an IllegalStateException if Resin Professional is not available.


isAvailable

public static boolean isAvailable()
Checks if the heap is available


dump

public java.lang.Object dump()
Returns an array of the HeapDump entries.


getLastHeapDump

public java.lang.Object getLastHeapDump()
Returns the last heap dump


writeHeapDump

public void writeHeapDump(java.io.PrintWriter out)
                   throws java.io.IOException
Writes a text value of the heap dump to an output stream.

Throws:
java.io.IOException

writeExtendedHeapDump

public void writeExtendedHeapDump(java.io.PrintWriter out)
                           throws java.io.IOException
Writes a text value of the heap dump to an output stream. Extended also write instance counts

Throws:
java.io.IOException

logHeapDump

public void logHeapDump(java.util.logging.Logger log,
                        java.util.logging.Level level)

jsonHeapDump

public java.lang.String jsonHeapDump()