Class UserMetric
-
- All Implemented Interfaces:
public class UserMetricUser metric
- Since:
2.13
-
-
Constructor Summary
Constructors Constructor Description UserMetric()
-
Method Summary
Modifier and Type Method Description synchronized voidadd(SampleResult result)Add a SampleResult to be used in the statistics synchronized voidresetForTimeInterval()Reset metric except for percentile related data intgetMaxActiveThreads()intgetMeanActiveThreads()intgetMinActiveThreads()intgetFinishedThreads()intgetStartedThreads()voidclear()Clear stats -
-
Method Detail
-
add
synchronized void add(SampleResult result)
Add a SampleResult to be used in the statistics
- Parameters:
result- SampleResult not used
-
resetForTimeInterval
synchronized void resetForTimeInterval()
Reset metric except for percentile related data
-
getMaxActiveThreads
int getMaxActiveThreads()
- Returns:
the max number of active threads for this test run using a sliding window of SLIDING_WINDOW_SIZE
-
getMeanActiveThreads
int getMeanActiveThreads()
- Returns:
the mean number of active threads for this test run using a sliding window of SLIDING_WINDOW_SIZE
-
getMinActiveThreads
int getMinActiveThreads()
- Returns:
the min number of active threads for this test run using a sliding window of SLIDING_WINDOW_SIZE
-
getFinishedThreads
int getFinishedThreads()
- Returns:
finished threads
-
getStartedThreads
int getStartedThreads()
- Returns:
started threads
-
clear
void clear()
Clear stats
-
-
-
-