TPTP 4.4.0 Platform Project
Public API Specification

org.eclipse.hyades.models.hierarchy.util
Class PerfUtil

java.lang.Object
  extended byorg.eclipse.hyades.models.hierarchy.util.PerfUtil

public class PerfUtil
extends java.lang.Object


Field Summary
protected  boolean debug
           
protected  java.lang.String msg
           
protected static java.util.Map registry
           
protected  long startFreeMem
           
protected  long startTime
           
protected  long startTotMem
           
protected static PerfUtil staticInactiveInstance
           
protected  long stopFreeMem
           
protected  long stopTime
           
protected  long stopTotMem
           
 
Constructor Summary
PerfUtil()
          Deprecated. use createInstance()
PerfUtil(java.lang.String msg, boolean start)
          Deprecated. use createInstance(String, boolean)
 
Method Summary
static PerfUtil createInstance()
           
static PerfUtil createInstance(java.lang.String msg, boolean start)
           
 long getFreeMemoryAfter()
           
 long getFreeMemoryDelta()
           
 java.lang.String getMessage()
           
static PerfUtil getPerfUtil(java.lang.Object key)
           
 long getTime()
           
 long getTotalMemoryAfter()
           
 long getTotalMemoryDelta()
           
 long getUsedMemoryAfter()
           
 long getUsedMemoryDelta()
           
 boolean isDebug()
           
 void printStatus()
           
 void printStatus(java.io.PrintStream out)
           
 void printStatus(java.lang.String m)
           
static PerfUtil removePerfUtil(java.lang.Object key)
           
 PerfUtil setDebug(boolean debug)
           
 void setMessage(java.lang.String msg)
           
 PerfUtil setMessageAndStart(java.lang.String string)
           
 void start()
           
 void stop()
           
 PerfUtil stopAndPrintStatus()
           
 PerfUtil stopAndPrintStatus(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

protected long startTime

stopTime

protected long stopTime

startTotMem

protected long startTotMem

startFreeMem

protected long startFreeMem

stopTotMem

protected long stopTotMem

stopFreeMem

protected long stopFreeMem

msg

protected java.lang.String msg

debug

protected boolean debug

registry

protected static java.util.Map registry

staticInactiveInstance

protected static PerfUtil staticInactiveInstance
Constructor Detail

PerfUtil

public PerfUtil()
Deprecated. use createInstance()


PerfUtil

public PerfUtil(java.lang.String msg,
                boolean start)
Deprecated. use createInstance(String, boolean)

Method Detail

createInstance

public static PerfUtil createInstance(java.lang.String msg,
                                      boolean start)

createInstance

public static PerfUtil createInstance()

start

public void start()

stop

public void stop()

getTime

public long getTime()

printStatus

public void printStatus()

printStatus

public void printStatus(java.lang.String m)

printStatus

public void printStatus(java.io.PrintStream out)

getUsedMemoryDelta

public long getUsedMemoryDelta()
Returns:

getTotalMemoryDelta

public long getTotalMemoryDelta()
Returns:

getFreeMemoryDelta

public long getFreeMemoryDelta()

getUsedMemoryAfter

public long getUsedMemoryAfter()

getFreeMemoryAfter

public long getFreeMemoryAfter()

getTotalMemoryAfter

public long getTotalMemoryAfter()

setMessage

public void setMessage(java.lang.String msg)

getMessage

public java.lang.String getMessage()
Returns:
Returns the msg.

setMessageAndStart

public PerfUtil setMessageAndStart(java.lang.String string)
Parameters:
string -

stopAndPrintStatus

public PerfUtil stopAndPrintStatus()

stopAndPrintStatus

public PerfUtil stopAndPrintStatus(java.lang.String msg)

getPerfUtil

public static PerfUtil getPerfUtil(java.lang.Object key)

removePerfUtil

public static PerfUtil removePerfUtil(java.lang.Object key)

isDebug

public boolean isDebug()
Returns:
Returns the debug.

setDebug

public PerfUtil setDebug(boolean debug)
Parameters:
debug - The debug to set.

TPTP 4.4.0 Platform Project
Public API Specification