| Constructor and Description |
|---|
JPutImpl(ExecutionRun executionRun) |
| Modifier and Type | Method and Description |
|---|---|
void |
markPerformanceTestStart()
This function may be called directly from the performance test to tell JPut that measurement must start from this point,
i.e. not from the beginning of the method. This might be useful when performance test makes some expensive initialization first.
|
markPerformanceTestStartpublic JPutImpl(ExecutionRun executionRun)
public void markPerformanceTestStart()
This function may be called directly from the performance test to tell JPut that measurement must start from this point, i.e. not from the beginning of the method. This might be useful when performance test makes some expensive initialization first.
For example:
@PerformanceTest(...)
public void myPerfTest(JPut jPut) {
prepareTestData(); // takes some time...
jPut.markPerformanceTestStart(); // Ignore time took by the init
// and here goes the code which will really be measured
...
}