com.caucho.profile
Class ProHeapDump

java.lang.Object
  extended by com.caucho.profile.HeapDump
      extended by com.caucho.profile.ProHeapDump

public class ProHeapDump
extends HeapDump

Resin's profiling class.


Constructor Summary
ProHeapDump()
           
 
Method Summary
 java.lang.Object dump()
          Returns an array of the HeapDump entries.
 java.lang.Object getLastHeapDump()
          Returns the last heap dump
static boolean isEnabled()
           
 java.lang.String jsonHeapDump()
           
 void logHeapDump(java.util.logging.Logger log, java.util.logging.Level level)
           
static java.lang.Object nativeHeapDump()
           
 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 com.caucho.profile.HeapDump
create, isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProHeapDump

public ProHeapDump()
Method Detail

isEnabled

public static boolean isEnabled()

getLastHeapDump

public java.lang.Object getLastHeapDump()
Description copied from class: HeapDump
Returns the last heap dump

Overrides:
getLastHeapDump in class HeapDump

dump

public java.lang.Object dump()
Description copied from class: HeapDump
Returns an array of the HeapDump entries.

Overrides:
dump in class HeapDump

writeHeapDump

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

Overrides:
writeHeapDump in class HeapDump
Throws:
java.io.IOException

writeExtendedHeapDump

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

Overrides:
writeExtendedHeapDump in class HeapDump
Throws:
java.io.IOException

jsonHeapDump

public java.lang.String jsonHeapDump()
Overrides:
jsonHeapDump in class HeapDump

logHeapDump

public void logHeapDump(java.util.logging.Logger log,
                        java.util.logging.Level level)
Overrides:
logHeapDump in class HeapDump

nativeHeapDump

public static java.lang.Object nativeHeapDump()