Package org.locationtech.jts.util
Class Memory
- java.lang.Object
-
- org.locationtech.jts.util.Memory
-
public class Memory extends Object
Utility functions to report JVM memory usage.- Author:
- mbdavis
-
-
Constructor Summary
Constructors Constructor Description Memory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
allString()
static String
format(long mem)
static long
free()
static String
freeString()
static double
round(double d)
static long
total()
static String
totalString()
static long
used()
static String
usedString()
static String
usedTotalString()
-
-
-
Field Detail
-
KB
public static final double KB
- See Also:
- Constant Field Values
-
MB
public static final double MB
- See Also:
- Constant Field Values
-
GB
public static final double GB
- See Also:
- Constant Field Values
-
-
Method Detail
-
used
public static long used()
-
usedString
public static String usedString()
-
free
public static long free()
-
freeString
public static String freeString()
-
total
public static long total()
-
totalString
public static String totalString()
-
usedTotalString
public static String usedTotalString()
-
allString
public static String allString()
-
format
public static String format(long mem)
-
round
public static double round(double d)
-
-