Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Biggs2005-04-28 17:57:06 -0400
committerBilly Biggs2005-04-28 17:57:06 -0400
commita625135d89c902c95f5dfbca226210f3c727baeb (patch)
tree11ef8d064ee6fa75801c5ab875ad35dd72023d7b
parente960637631f870e16774d481009d227c0229eb40 (diff)
downloadeclipse.platform.swt-R2_1_3_performance.tar.gz
eclipse.platform.swt-R2_1_3_performance.tar.xz
eclipse.platform.swt-R2_1_3_performance.zip
Update with the latest tests from HEAD.performance_20050428_for_2_1_3R2_1_3_performance
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java2
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
index 5932e9023e..4651f7addf 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java
@@ -43,7 +43,7 @@ protected PerformanceMeter createMeter(String id) {
Performance performance = Performance.getDefault();
String scenarioId = "org.eclipse.swt.test." + id;
PerformanceMeter meter = performance.createPerformanceMeter(scenarioId);
- performance.tagAsSummary(meter, id, Dimension.CPU_TIME);
+ performance.tagAsSummary(meter, id, Dimension.ELAPSED_PROCESS);
return meter;
}
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java
index a23763080c..b9b08c5326 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java
@@ -61,7 +61,7 @@ public void test_createComposites() {
int samples;
Performance performance = Performance.getDefault();
- performance.tagAsGlobalSummary(meter, "Create composites", Dimension.CPU_TIME);
+ performance.tagAsGlobalSummary(meter, "Create composites", Dimension.ELAPSED_PROCESS);
// Warm up.
for(samples = 0; samples < 2; samples++) {
@@ -332,7 +332,7 @@ public void test_fastStringDrawing() {
int samples;
Performance performance = Performance.getDefault();
- performance.tagAsGlobalSummary(meter, "Draw strings using GC.drawString()", Dimension.CPU_TIME);
+ performance.tagAsGlobalSummary(meter, "Draw strings using GC.drawString()", Dimension.ELAPSED_PROCESS);
for(samples = 0; samples < 10; samples++) {
int width = 640;

Back to the top