Package com.compomics.util.memory
Class MemoryConsumptionStatus
java.lang.Object
com.compomics.util.memory.MemoryConsumptionStatus
This class provides information on the memory consumption status.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanIndicates whether a GB of memory is free.static doubleReturns 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
-