public class MemoryStatistics extends Statistics
Constructor and Description |
---|
MemoryStatistics(int numReadsToStore)
Creates a memory statistics object that will store up to the specified number of entries to use in average calculation
|
Modifier and Type | Method and Description |
---|---|
long |
getCurrentHeapSizeInBytes()
Returns the size of the heap (not necessarily used)
|
double |
getCurrentLoadPercent()
Returns the current load as a percentage (from 0 to 1).
|
getAndStoreCurrentLoadPercent, getAverageLoadPercent
public MemoryStatistics(int numReadsToStore)
numReadsToStore
- The number of reads to store for getting an average (must be greater than 0)public double getCurrentLoadPercent()
Statistics
getCurrentLoadPercent
in class Statistics
public long getCurrentHeapSizeInBytes()