Package org.openjdk.jmh.runner
Class InfraControl
The InfraControl logic class.
This is the rendezvous class for benchmark handler and JMH.
-
Field Summary
Fields inherited from class org.openjdk.jmh.runner.InfraControlL2
benchmarkParams, isDone, isFailing, iterationParams, lastIteration, notifyControl, preSetup, preTearDown, volatileSpoiler, warmdownDone, warmdownShouldWait, warmdownVisited, warmupDone, warmupShouldWait, warmupVisited
-
Constructor Summary
ConstructorsConstructorDescriptionInfraControl
(BenchmarkParams benchmarkParams, IterationParams iterationParams, CountDownLatch preSetup, CountDownLatch preTearDown, boolean lastIteration, Control notifyControl) -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
long
getDuration
(TimeUnit unit) boolean
void
preSetup()
void
void
void
Methods inherited from class org.openjdk.jmh.runner.InfraControlL2
announceWarmdownReady, announceWarmupReady, awaitWarmdownReady, awaitWarmupReady, getParam
-
Constructor Details
-
InfraControl
public InfraControl(BenchmarkParams benchmarkParams, IterationParams iterationParams, CountDownLatch preSetup, CountDownLatch preTearDown, boolean lastIteration, Control notifyControl)
-
-
Method Details
-
getDuration
public long getDuration()- Returns:
- requested loop duration in milliseconds.
-
getDuration
- Parameters:
unit
- timeunit to use- Returns:
- requested loop duration in the requested unit.
-
preSetup
public void preSetup() -
preTearDown
public void preTearDown() -
preSetupForce
public void preSetupForce() -
preTearDownForce
public void preTearDownForce() -
isLastIteration
public boolean isLastIteration() -
announceDone
public void announceDone()
-