public class WarmUpReporter extends AbstractReporter
WarmUpReporter
in the scenario. The minimal iteration count and
the warm-up period duration can be tweaked by the respective properties (minimalWarmUpCount
with the default value of 10,000 and minimalWarmUpDuration
with the default value of
15,000 ms).
The system is considered warmed up when all of the following conditions are satisfied: The iteration length is not changing much over the time, the minimal iteration count has been executed and the minimal duration from the very start has exceeded.
Constructor and Description |
---|
WarmUpReporter() |
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteThreshold()
Gets the value of absolute threshold.
|
long |
getMaximalWarmUpDuration()
Gets the maximal tolerance of waiting for the end of the warm-up phase.
|
PeriodType |
getMaximalWarmUpType()
Gets the unit in which we measure the maximal warm-up count.
|
long |
getMinimalWarmUpCount()
Gets the value of minimal warm-up iteration count.
|
long |
getMinimalWarmUpDuration()
Gets the value of minimal warm-up period duration.
|
double |
getRelativeThreshold()
Gets the value of relative threshold.
|
void |
publishResult(PeriodType periodType,
Destination destination)
Publishes results to the destination.
|
WarmUpReporter |
setAbsoluteThreshold(double absoluteThreshold)
Sets the value of absolute threshold.
|
WarmUpReporter |
setMaximalWarmUpDuration(long maximalWarmUpDuration)
Sets the maximal tolerance of waiting for the end of the warm-up phase.
|
WarmUpReporter |
setMaximalWarmUpType(PeriodType maximalWarmUpType)
Sets the unit in which we measure the maximal warm-up count.
|
WarmUpReporter |
setMinimalWarmUpCount(long minimalWarmUpCount)
Sets the value of minimal warm-up iteration count.
|
WarmUpReporter |
setMinimalWarmUpDuration(long minimalWarmUpDuration)
Sets the value of minimal warm-up period duration.
|
WarmUpReporter |
setRelativeThreshold(double relativeThreshold)
Sets the value of relative threshold.
|
void |
start()
Starts the reporter.
|
getDestinations, getReportingPeriods, newMeasurement, registerDestination, registerDestination, report, reset, setReportManager, setRunInfo, stop, unregisterDestination
public void start()
Reporter
start
in interface Reporter
start
in class AbstractReporter
public void publishResult(PeriodType periodType, Destination destination) throws ReportingException
Reporter
periodType
- A period type that caused the invocation of this method.destination
- A destination to which the result should be reported.ReportingException
- When it was not possible to publish results to the given destination.public long getMinimalWarmUpDuration()
public WarmUpReporter setMinimalWarmUpDuration(long minimalWarmUpDuration)
minimalWarmUpDuration
- The minimal warm-up period duration to set.public long getMinimalWarmUpCount()
public WarmUpReporter setMinimalWarmUpCount(long minimalWarmUpCount)
minimalWarmUpCount
- The value of minimal warm-up iteration count to set.public double getRelativeThreshold()
public WarmUpReporter setRelativeThreshold(double relativeThreshold)
relativeThreshold
- The value of relative threshold to set.public double getAbsoluteThreshold()
public WarmUpReporter setAbsoluteThreshold(double absoluteThreshold)
absoluteThreshold
- The value of absolute threshold to set.public PeriodType getMaximalWarmUpType()
public WarmUpReporter setMaximalWarmUpType(PeriodType maximalWarmUpType)
maximalWarmUpType
- The unit in which we measure the maximal warm-up count.public long getMaximalWarmUpDuration()
maximalWarmUpType
,
we simply break the test and do not waste more time. -1
means that the check is disabled.public WarmUpReporter setMaximalWarmUpDuration(long maximalWarmUpDuration)
maximalWarmUpType
,
we simply break the test and do not waste more time. -1
means that the check is disabled.maximalWarmUpDuration
- The maximal tolerance of waiting for the end of the warm-up phase.Copyright © 2010–2017 PerfCake Community. All rights reserved.