public final class InitTimer extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private static boolean |
ENABLED
Specifies if initialization timing is enabled.
|
static Thread |
initializingThread
Used to assert the invariant that all initialization happens on the same thread.
|
(package private) String |
name |
static String |
SPACES |
(package private) long |
start |
static int |
timerDepth |
Modifier | Constructor and Description |
---|---|
private |
InitTimer(String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static InitTimer |
timer(String name) |
static InitTimer |
timer(String name,
Object suffix) |
final long start
private static final boolean ENABLED
HotSpotOptions
.public static int timerDepth
public static final String SPACES
public static final Thread initializingThread