Package com.compomics.util.memory
Class MemoryConsumptionStatus
java.lang.Object
com.compomics.util.memory.MemoryConsumptionStatus
public class MemoryConsumptionStatus extends Object
This class provides information on the memory consumption status.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description MemoryConsumptionStatus()
Empty default constructor -
Method Summary
Modifier and Type Method Description static boolean
halfGbFree()
Indicates whether a GB of memory is free.static double
memoryUsed()
Returns the share of memory being used.
-
Constructor Details
-
MemoryConsumptionStatus
public MemoryConsumptionStatus()Empty default constructor
-
-
Method Details
-
halfGbFree
public static boolean halfGbFree()Indicates whether a GB of memory is free.- Returns:
- a boolean indicating whether a GB of memory is free
-
memoryUsed
public static double memoryUsed()Returns the share of memory being used.- Returns:
- the share of memory being used
-