public class MemUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
BYTES_PER_MB |
| Constructor and Description |
|---|
MemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static long |
freeMemory() |
static double |
mb(long bytes) |
static void |
printMemory(String msg,
long mem) |
static void |
printUsedMemory(String msg) |
static void |
runGC() |
static long |
totalMemory() |
static long |
usedMemory() |
static long |
usedMemoryAfterGC() |
public static final double BYTES_PER_MB
public static void runGC()
public static long usedMemoryAfterGC()
public static long usedMemory()
public static long freeMemory()
public static long totalMemory()
public static double mb(long bytes)
public static void printUsedMemory(String msg)
public static void printMemory(String msg, long mem)
Copyright © 2019. All rights reserved.