Package org.cip4.jdflib.util
Class MemorySpy
java.lang.Object
org.cip4.jdflib.util.MemorySpy
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongget the currently used memorylonglonggetHeapUsed(MemorySpy.MemScope scope) longgetMemFromPool(String name, MemorySpy.MemScope scope) longgetNonHeapUsed(MemorySpy.MemScope scope) longgetPermGen(MemorySpy.MemScope scope) get a fast summary for debugginggetSummary(String delim) get a fast summary for debuggingget a fast summary for debugginglongstatic booleanbooleanstatic voidsetDefaultMega(boolean defaultMega) voidsetWantMega(boolean wantMega) if true we want it in MegabytestoString()
-
Field Details
-
CURRENT
- See Also:
-
TOTAL
- See Also:
-
FREE
- See Also:
-
-
Constructor Details
-
MemorySpy
public MemorySpy()
-
-
Method Details
-
isDefaultMega
public static boolean isDefaultMega()- Returns:
- the defaultMega
-
setDefaultMega
public static void setDefaultMega(boolean defaultMega) - Parameters:
defaultMega- the defaultMega to set
-
getSizeMap
- Returns:
-
getHeapUsed
- Parameters:
scope-- Returns:
-
getNonHeapUsed
- Parameters:
scope-- Returns:
-
getPermGen
- Parameters:
scope-- Returns:
-
getMemFromPool
- Parameters:
name-scope-- Returns:
-
getSummary
get a fast summary for debugging- Returns:
-
getSummary
get a fast summary for debugging- Returns:
-
getCurrentMem
public long getCurrentMem()get the currently used memory- Returns:
- the used memory
-
getSummaryMap
get a fast summary for debugging- Returns:
-
getTotalMemory
public long getTotalMemory()- Returns:
-
getFreeMem
public long getFreeMem()- Returns:
-
toString
-
isWantMega
public boolean isWantMega()- Returns:
-
setWantMega
public void setWantMega(boolean wantMega) if true we want it in Megabytes- Parameters:
wantMega-
-