public class Debug extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Debug.Dbg |
Modifier and Type | Field and Description |
---|---|
static Debug.Dbg |
$assert0 |
static Debug.Dbg |
$assert1 |
static boolean |
ENABLED |
static Random |
RANDOM |
static boolean |
VERIFY_PAGES |
Constructor and Description |
---|
Debug() |
Modifier and Type | Method and Description |
---|---|
static String |
asString(Throwable t) |
static String |
callStack(int from,
int to) |
static void |
debugPause(float probability,
long millis)
Debugging aid: code can invoke this method to introduce a pause.
|
static long |
elapsedTime() |
static long |
now() |
static void |
setStartTime(long startTime) |
static boolean |
suspend()
Assert this method invocation anywhere you want to suspend a thread.
|
static String |
trace(int from,
int to) |
public static final boolean ENABLED
public static final boolean VERIFY_PAGES
public static final Random RANDOM
public static Debug.Dbg $assert0
public static Debug.Dbg $assert1
public static void setStartTime(long startTime)
public static long elapsedTime()
public static long now()
public static String trace(int from, int to)
public static String callStack(int from, int to)
public static boolean suspend()
public static void debugPause(float probability, long millis)
probability
- Probability of pausing: 0 - 1.0fmillis
- time interval in millisecondsCopyright © 2025 Open Identity Platform Community. All rights reserved.