| java.lang.Object org.eclipse.ui.tests.performance.PerformanceTester
PerformanceTester | final class PerformanceTester (Code) | | since: 3.1 |
Method Summary | |
public void | assertPerformance() Asserts default properties of the measurements captured for this test
case. | public void | assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage) Asserts that the measurement specified by the given dimension is within a
certain range with respect to some reference value. | public void | commitMeasurements() | public void | dispose() | public void | setDegradationComment(String string) Set a degradation comment for the current meter. | public void | startMeasuring() Called from within a test case immediately before the code to measure is
run. | public void | stopMeasuring() | public void | tagAsGlobalSummary(String shortName, Dimension dimension) Mark the scenario of this test case to be included both into the global
and the local (component) performance summary. | public void | tagAsGlobalSummary(String shortName, Dimension[] dimensions) Mark the scenario represented by the given PerformanceMeter to be
included into the global and the local (component) performance summary. | public void | tagAsSummary(String shortName, Dimension dimension) Mark the scenario of this test case to be included into the local (component)
performance summary. | public void | tagAsSummary(String shortName, Dimension[] dimensions) Mark the scenario represented by the given PerformanceMeter to be
included into the local (component) performance summary. |
fPerformanceMeter | protected PerformanceMeter fPerformanceMeter(Code) | | |
PerformanceTester | public PerformanceTester(TestCase testCase)(Code) | | Parameters: testCase - |
assertPerformance | public void assertPerformance()(Code) | | Asserts default properties of the measurements captured for this test
case.
throws: RuntimeException - if the properties do not hold |
assertPerformanceInRelativeBand | public void assertPerformanceInRelativeBand(Dimension dim, int lowerPercentage, int upperPercentage)(Code) | | Asserts that the measurement specified by the given dimension is within a
certain range with respect to some reference value. If the specified
dimension isn't available, the call has no effect.
Parameters: dim - the Dimension to check Parameters: lowerPercentage - a negative number indicating the percentage the measured valueis allowed to be smaller than some reference value Parameters: upperPercentage - a positive number indicating the percentage the measured valueis allowed to be greater than some reference value throws: RuntimeException - if the properties do not hold |
commitMeasurements | public void commitMeasurements()(Code) | | |
dispose | public void dispose()(Code) | | |
setDegradationComment | public void setDegradationComment(String string)(Code) | | Set a degradation comment for the current meter.
Parameters: string - |
startMeasuring | public void startMeasuring()(Code) | | Called from within a test case immediately before the code to measure is
run. It starts capturing of performance data. Must be followed by a call
to
PerformanceTestCase.stopMeasuring before subsequent calls to
this method or
PerformanceTestCase.commitMeasurements .
|
stopMeasuring | public void stopMeasuring()(Code) | | |
tagAsGlobalSummary | public void tagAsGlobalSummary(String shortName, Dimension dimension)(Code) | | Mark the scenario of this test case to be included both into the global
and the local (component) performance summary. The summary shows the given dimension of the
scenario and labels the scenario with the short name.
Parameters: shortName - a short (shorter than 40 characters) descritive name of the scenario Parameters: dimension - the dimension to show in the summary |
tagAsGlobalSummary | public void tagAsGlobalSummary(String shortName, Dimension[] dimensions)(Code) | | Mark the scenario represented by the given PerformanceMeter to be
included into the global and the local (component) performance summary. The summary shows the given
dimensions of the scenario and labels the scenario with the short name.
Parameters: shortName - a short (shorter than 40 characters) descritive name of the scenario Parameters: dimensions - an array of dimensions to show in the summary |
tagAsSummary | public void tagAsSummary(String shortName, Dimension dimension)(Code) | | Mark the scenario of this test case to be included into the local (component)
performance summary. The summary shows the given dimension of the
scenario and labels the scenario with the short name.
Parameters: shortName - a short (shorter than 40 characters) descriptive name of the scenario Parameters: dimension - the dimension to show in the summary |
tagAsSummary | public void tagAsSummary(String shortName, Dimension[] dimensions)(Code) | | Mark the scenario represented by the given PerformanceMeter to be
included into the local (component) performance summary. The summary shows the given
dimensions of the scenario and labels the scenario with the short name.
Parameters: shortName - a short (shorter than 40 characters) descriptive name of the scenario Parameters: dimensions - an array of dimensions to show in the summary |
|
|