summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2004-10-18 19:11:53 +0000
committerGrant Gayed <ggayed>2004-10-18 19:11:53 +0000
commit58c2fb2b22d141bbf3208dff6b7308f6bedbd875 (patch)
tree2460f65299d4a5991fc29ed3a1143ee9d9fe18cc
parent4713111660ea1da12b0f63eafff8ae258d6d1ee0 (diff)
downloadeclipse.platform.swt-58c2fb2b22d141bbf3208dff6b7308f6bedbd875.tar.gz
eclipse.platform.swt-58c2fb2b22d141bbf3208dff6b7308f6bedbd875.tar.xz
eclipse.platform.swt-58c2fb2b22d141bbf3208dff6b7308f6bedbd875.zip
*** empty log message ***
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_org_eclipse_swt_graphics_GC.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_org_eclipse_swt_graphics_GC.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_org_eclipse_swt_graphics_GC.java
index 69e96d33ed..595ee72988 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_org_eclipse_swt_graphics_GC.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_org_eclipse_swt_graphics_GC.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.printing.*;
import org.eclipse.swt.widgets.*;
-import org.eclipse.test.performance.PerformanceMeter;
+import org.eclipse.test.performance.*;
/**
* Automated Performance Test Suite for class org.eclipse.swt.graphics.GC
@@ -354,6 +354,8 @@ public void test_drawImageLorg_eclipse_swt_graphics_ImageII() {
disposeMeter(meter);
meter = createMeter("transparent");
+ Performance performance = Performance.getDefault();
+ performance.tagAsGlobalSummary(meter, "GC.drawImage() transparent * " + COUNT, Dimension.CPU_TIME);
meter.start();
for (int i = 0; i < COUNT; i++) {
gc.drawImage(imageTransparent, coords[i][0], coords[i][1]); // transparent image
@@ -619,6 +621,8 @@ public void test_drawStringLjava_lang_StringIIZ() {
}
PerformanceMeter meter = createMeter("transparent");
+ Performance performance = Performance.getDefault();
+ performance.tagAsGlobalSummary(meter, "GC.drawString () transparent * " + COUNT, Dimension.CPU_TIME);
meter.start();
for (int i = 0; i < COUNT; i++) {
gc.drawString("test string", coords[i][0], coords[i][1], true);