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 longDEFAULT_LOG_DURATION_THRESHOLDstatic StringPERF_ACTIVEstatic StringPERF_STAT_MAX_LEVELstatic StringTHREAD_STAT_CATEGORYstatic StringTHREAD_STAT_LOGGING_THRESHOLD_PROPstatic StringTHREAD_STAT_LOGGING_THRESHOLD_PROP_BYTESstatic StringUPDATE_CACHED
-
Constructor Summary
Constructors Constructor Description TraceStateWithPerf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfOperations()Iterator<ThreadStat.ThreadOperation>getOperations()ThreadStat.OperationDisposablestartOperation(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:
startOperationin interfaceTraceState
-
getOperations
@NotNull public Iterator<ThreadStat.ThreadOperation> getOperations()
- Specified by:
getOperationsin interfaceTraceState
-
getNumberOfOperations
public int getNumberOfOperations()
- Specified by:
getNumberOfOperationsin interfaceTraceState
-
-