Package jetbrains.buildServer.util
Class TraceStateWithPerf
- java.lang.Object
-
- jetbrains.buildServer.util.TraceStateWithPerf
-
- All Implemented Interfaces:
TraceState
public class TraceStateWithPerf extends Object implements TraceState
- Author:
- Yegor.Yarko Date: 22/03/2017
-
-
Field Summary
Fields Modifier and Type Field Description protected static long
DEFAULT_LOG_DURATION_THRESHOLD
static String
PERF_ACTIVE
static String
PERF_STAT_MAX_LEVEL
static String
THREAD_STAT_CATEGORY
static String
THREAD_STAT_LOGGING_THRESHOLD_PROP
static String
THREAD_STAT_LOGGING_THRESHOLD_PROP_BYTES
static String
UPDATE_CACHED
-
Constructor Summary
Constructors Constructor Description TraceStateWithPerf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfOperations()
Iterator<ThreadStat.ThreadOperation>
getOperations()
ThreadStat.OperationDisposable
startOperation(String operationDescription)
-
-
-
Field Detail
-
THREAD_STAT_CATEGORY
public static final String THREAD_STAT_CATEGORY
- See Also:
- Constant Field Values
-
PERF_ACTIVE
public static final String PERF_ACTIVE
- See Also:
- Constant Field Values
-
PERF_STAT_MAX_LEVEL
public static final String PERF_STAT_MAX_LEVEL
- See Also:
- Constant Field Values
-
UPDATE_CACHED
public static final String UPDATE_CACHED
- See Also:
- Constant Field Values
-
THREAD_STAT_LOGGING_THRESHOLD_PROP
public static final String THREAD_STAT_LOGGING_THRESHOLD_PROP
- See Also:
- Constant Field Values
-
THREAD_STAT_LOGGING_THRESHOLD_PROP_BYTES
public static final String THREAD_STAT_LOGGING_THRESHOLD_PROP_BYTES
- See Also:
- Constant Field Values
-
DEFAULT_LOG_DURATION_THRESHOLD
protected static final long DEFAULT_LOG_DURATION_THRESHOLD
-
-
Method Detail
-
startOperation
@NotNull public ThreadStat.OperationDisposable startOperation(@NotNull String operationDescription)
- Specified by:
startOperation
in interfaceTraceState
-
getOperations
@NotNull public Iterator<ThreadStat.ThreadOperation> getOperations()
- Specified by:
getOperations
in interfaceTraceState
-
getNumberOfOperations
public int getNumberOfOperations()
- Specified by:
getNumberOfOperations
in interfaceTraceState
-
-