Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBilly Biggs2005-04-28 17:53:34 -0400
committerBilly Biggs2005-04-28 17:53:34 -0400
commitc436a073929c18c9e4b6da2be788b1a09d15a85e (patch)
tree11ef8d064ee6fa75801c5ab875ad35dd72023d7b
parentd2422269eaab01071c7d0013ae36e3bf79a91cc1 (diff)
downloadeclipse.platform.swt-R3_0_performance.tar.gz
eclipse.platform.swt-R3_0_performance.tar.xz
eclipse.platform.swt-R3_0_performance.zip
Update with the latest performance tests from HEAD.performance_20050428_for_3_0R3_0_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