public class JPut
TODO list:
Delete old entries
Flat map elapsed times
Timeout when max time is not set
Self warm up
Helper functions for JPut users to control the perf tests execution
| Modifier and Type | Method and Description |
|---|---|
PerfTestExecution |
getCurrentExecution() |
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.
|
void |
setPerformanceTestResult(ExecutionRunResultDetails result)
Anonymous functions are not supported yet!
|
void |
setPerformanceTestResult(java.lang.Throwable error,
int resultCode,
java.lang.String errorMessage) |
void |
setPerformanceTestResult(java.lang.Throwable error,
int resultCode) |
void |
setPerformanceTestResult(java.lang.Throwable error) |
void |
setPerformanceTestResult() |
void |
setPerformanceTestResult(int resultCode,
java.lang.String errorMessage) |
void |
setPerformanceTestResult(int resultCode) |
public static JPut INSTANCE
TODO list:
Delete old entries
Flat map elapsed times
Timeout when max time is not set
Self warm up
Helper functions for JPut users to control the perf tests execution
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() {
prepareTestData(); // takes some time...
JPut.markPerformanceTestStart(); // Ignore time took by the init
// and here goes the code which will really be measured
...
}
Anonymous functions are not supported yet!
public void setPerformanceTestResult(ExecutionRunResultDetails result)
Anonymous functions are not supported yet!
public void setPerformanceTestResult(java.lang.Throwable error,
int resultCode,
java.lang.String errorMessage)
public void setPerformanceTestResult(java.lang.Throwable error,
int resultCode)
public void setPerformanceTestResult(java.lang.Throwable error)
public void setPerformanceTestResult()
public void setPerformanceTestResult(int resultCode,
java.lang.String errorMessage)
public void setPerformanceTestResult(int resultCode)
public PerfTestExecution getCurrentExecution()