edu.cs.ai.kreator.misc.util
Class UtilityMethods

java.lang.Object
  extended by edu.cs.ai.kreator.misc.util.UtilityMethods

public class UtilityMethods
extends java.lang.Object


Field Summary
static java.text.NumberFormat douF
           
static java.text.NumberFormat intF
           
static org.apache.log4j.Logger LOG
           
static java.lang.management.MemoryMXBean memBean
           
 
Method Summary
static java.lang.String douF(double num)
           
static java.lang.String douF(long num)
           
static double finishPerformanceMeasuring(java.lang.String msg)
           
static java.lang.String formatMem(double memoryInBytes)
           
static long getCommitedMemory()
           
static long getMaxMemory()
           
static long getUsedMemory()
           
static java.lang.String intF(double num)
           
static java.lang.String intF(long num)
           
static java.lang.String memoryInfo()
           
static java.lang.String memoryInfoDetails()
           
static void startPerformanceMeasuring()
           
static java.lang.String startPerformanceMeasuring(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG

douF

public static java.text.NumberFormat douF

intF

public static java.text.NumberFormat intF

memBean

public static java.lang.management.MemoryMXBean memBean
Method Detail

douF

public static java.lang.String douF(double num)

douF

public static java.lang.String douF(long num)

intF

public static java.lang.String intF(double num)

intF

public static java.lang.String intF(long num)

startPerformanceMeasuring

public static void startPerformanceMeasuring()

startPerformanceMeasuring

public static java.lang.String startPerformanceMeasuring(java.lang.String msg)

finishPerformanceMeasuring

public static double finishPerformanceMeasuring(java.lang.String msg)

formatMem

public static java.lang.String formatMem(double memoryInBytes)

getUsedMemory

public static long getUsedMemory()

getCommitedMemory

public static long getCommitedMemory()

getMaxMemory

public static long getMaxMemory()

memoryInfo

public static java.lang.String memoryInfo()

memoryInfoDetails

public static java.lang.String memoryInfoDetails()