diff options
author | Andre Weinand | 2004-10-13 14:07:27 +0000 |
---|---|---|
committer | Andre Weinand | 2004-10-13 14:07:27 +0000 |
commit | f38baee7643ab740e875453c102f4c42bc2b602d (patch) | |
tree | 44eb3918d7b768a7e05ac20a1d5517a5e365bc4f /bundles/org.eclipse.test.performance/src/org/eclipse/test/performance | |
parent | 9d4ddd6946ec27eeec64584bf5e484873570a0a1 (diff) | |
download | eclipse.platform.releng-f38baee7643ab740e875453c102f4c42bc2b602d.tar.gz eclipse.platform.releng-f38baee7643ab740e875453c102f4c42bc2b602d.tar.xz eclipse.platform.releng-f38baee7643ab740e875453c102f4c42bc2b602d.zip |
added support for collecting fingerprinting data
Diffstat (limited to 'bundles/org.eclipse.test.performance/src/org/eclipse/test/performance')
-rw-r--r-- | bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/PerformanceTestCase.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/PerformanceTestCase.java b/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/PerformanceTestCase.java index ee775176..57aab612 100644 --- a/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/PerformanceTestCase.java +++ b/bundles/org.eclipse.test.performance/src/org/eclipse/test/performance/PerformanceTestCase.java @@ -68,6 +68,32 @@ public class PerformanceTestCase extends TestCase { } /** + * Mark the scenario of this test case + * to be included into the global performance summary. The summary shows + * the given dimension of the scenario and labels the scenario with the short name. + * + * @param shortName a short (shorter than 40 characters) descritive name of the scenario + * @param dimension the dimension to show in the summary + */ + public void tagAsGlobalSummary(String shortName, Dimension dimension) { + Performance performance= Performance.getDefault(); + performance.tagAsGlobalSummary(fPerformanceMeter, shortName, new Dimension[] { dimension } ); + } + + /** + * Mark the scenario represented by the given PerformanceMeter + * to be included into the global performance summary. The summary shows + * the given dimensions of the scenario and labels the scenario with the short name. + * + * @param shortName a short (shorter than 40 characters) descritive name of the scenario + * @param dimensions an array of dimensions to show in the summary + */ + public void tagAsGlobalSummary(String shortName, Dimension[] dimensions) { + Performance performance= Performance.getDefault(); + performance.tagAsGlobalSummary(fPerformanceMeter, shortName, dimensions ); + } + + /** * 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 {@link PerformanceTestCase#stopMeasuring()} before subsequent calls |