public class MemoryLogger
extends java.lang.Object
Constructor and Description |
---|
MemoryLogger() |
Modifier and Type | Method and Description |
---|---|
void |
checkMemory()
Check the current memory usage and record it if it is higher
than the amount of memory previously recorded.
|
static MemoryLogger |
getInstance()
Method to obtain the only instance of this class
|
double |
getMaxMemory()
To get the maximum amount of memory used until now
|
void |
reset()
Reset the maximum amount of memory recorded.
|
public static MemoryLogger getInstance()
public double getMaxMemory()
public void reset()
public void checkMemory()