public class MemoryUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
currentCount |
private static boolean |
MEMORY_PRINT_ENABLED |
private static int |
MEMORY_PROFILE_SIZE |
private static byte[][] |
memoryHolders |
private static long[] |
memoryProfile |
(package private) static boolean |
oldterning |
(package private) static boolean |
oldxpath |
(package private) static boolean |
otrt |
Constructor and Description |
---|
MemoryUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
enableMemoryProfile() |
static void |
printMemoryTest()
Prints a memory test debug statement to stdout.
|
static void |
printMemoryTest(java.lang.String tag)
Prints a memory test debug statement to stdout
with a tag to reference
Requires memory printing to be enabled, otherwise
is a no-op
|
static void |
printMemoryTest(java.lang.String tag,
int pause)
Prints a memory test debug statement to stdout
with a tag to reference.
|
static void |
profileMemory()
Experimental.
|
static void |
revertTerning() |
static void |
stopTerning() |
private static long[] memoryProfile
private static byte[][] memoryHolders
static int currentCount
static boolean oldterning
static boolean otrt
static boolean oldxpath
private static final int MEMORY_PROFILE_SIZE
private static boolean MEMORY_PRINT_ENABLED
public static void stopTerning()
public static void revertTerning()
public static void enableMemoryProfile()
public static void printMemoryTest()
public static void printMemoryTest(java.lang.String tag)
tag
- public static void printMemoryTest(java.lang.String tag, int pause)
tag
- pause
- public static void profileMemory()