| Modifier and Type | Class and Description |
|---|---|
static class |
GridDebug.Item
Debug info queue item.
|
| Constructor and Description |
|---|
GridDebug() |
| Modifier and Type | Method and Description |
|---|---|
static void |
allowWriteLog(boolean allow) |
static void |
debug(Object... x)
Add the data to debug queue.
|
static void |
dump(Collection<GridDebug.Item> que)
Dump given queue to stdout.
|
static void |
dumpHeap(String fileName,
boolean live)
Call this method from your application whenever you
want to dump the heap snapshot into a file.
|
static void |
dumpLastAndStop(int n)
Dumps given number of last events.
|
static Object |
dumpStack() |
static String |
dumpWithReset()
Dump existing queue to stdout and atomically replace it with new queue.
|
static String |
dumpWithReset(@Nullable ConcurrentLinkedQueue<GridDebug.Item> q2,
@Nullable IgnitePredicate<GridDebug.Item> filter)
Dump existing queue to stdout and atomically replace it with given.
|
static String |
dumpWithStop(Object... x)
Dump existing queue to stdout and atomically replace it with null so that no subsequent logging is possible.
|
static long |
getCommittedVirtualMemorySize() |
static void |
hangIfStopped()
Hangs for 5 minutes if stopped.
|
static ConcurrentLinkedQueue<GridDebug.Item> |
queue()
Gets collected debug items queue.
|
static void |
reset()
Reset queue to empty one.
|
static void |
start()
Sets starting time after which
timing(String) measurements can be done. |
static void |
timing(String label)
Print timing after the
start() call. |
static void |
write(Object... x)
Writes to log file which should reside on ram disk.
|
public static ConcurrentLinkedQueue<GridDebug.Item> queue()
public static void allowWriteLog(boolean allow)
allow - Write log.public static void write(Object... x)
x - Data to log.public static void debug(Object... x)
x - Debugging data.public static void hangIfStopped()
public static void start()
timing(String) measurements can be done.public static void timing(String label)
start() call.label - Label.public static Object dumpStack()
public static void dumpLastAndStop(int n)
n - Number of last elements to dump.public static void dump(Collection<GridDebug.Item> que)
que - Queue.public static String dumpWithStop(Object... x)
x - Parameters.assert x == 0 : D.dumpWithStop(); ).public static String dumpWithReset()
assert x == 0 : D.dumpWithReset(); ).public static String dumpWithReset(@Nullable @Nullable ConcurrentLinkedQueue<GridDebug.Item> q2, @Nullable @Nullable IgnitePredicate<GridDebug.Item> filter)
q2 - Queue.filter - Filter for logged debug items.public static void reset()
public static void dumpHeap(String fileName, boolean live)
fileName - name of the heap dump filelive - flag that tells whether to dump
only the live objectspublic static long getCommittedVirtualMemorySize()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023