Package jetbrains.buildServer.util
Class ThreadStat
- java.lang.Object
-
- jetbrains.buildServer.util.ThreadStat
-
public final class ThreadStat extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ThreadStat.OperationDisposable
static interface
ThreadStat.ThreadOperation
-
Field Summary
Fields Modifier and Type Field Description static String
THREAD_PERF_STATISTICS_ENABLED
static String
THREAD_STAT_ENABLED_PROP
static String
THREAD_STAT_MAX_OPERATION_DESCR_PROP
static String
THREAD_STAT_MAX_OPERATIONS_PROP
-
Constructor Summary
Constructors Constructor Description ThreadStat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TraceState
get()
static TraceState
getTraceState()
static void
init()
static boolean
isEnabled()
static boolean
isPerfStatEnabled()
static void
reset()
-
-
-
Field Detail
-
THREAD_STAT_ENABLED_PROP
public static final String THREAD_STAT_ENABLED_PROP
- See Also:
- Constant Field Values
-
THREAD_PERF_STATISTICS_ENABLED
public static final String THREAD_PERF_STATISTICS_ENABLED
- See Also:
- Constant Field Values
-
THREAD_STAT_MAX_OPERATIONS_PROP
public static final String THREAD_STAT_MAX_OPERATIONS_PROP
- See Also:
- Constant Field Values
-
THREAD_STAT_MAX_OPERATION_DESCR_PROP
public static final String THREAD_STAT_MAX_OPERATION_DESCR_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
@NotNull public static TraceState get()
-
init
public static void init()
-
getTraceState
@NotNull public static TraceState getTraceState()
-
reset
public static void reset()
-
isEnabled
public static boolean isEnabled()
-
isPerfStatEnabled
public static boolean isPerfStatEnabled()
- Returns:
- true if additional performance statistics should be added to thread names
-
-