Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-09-21 15:15:03 +0000
committerAlexander Kurtakov2020-09-21 15:15:03 +0000
commit5dc1f71dd265cfbdbcfc43c68f274261f9bd06f2 (patch)
tree195a6cb5ebf289c1b8d42636cebcb1018221f0fe
parent6dd879f9b714a33c38a1e73916c580572a5e32e1 (diff)
downloadeclipse.jdt.core-5dc1f71dd265cfbdbcfc43c68f274261f9bd06f2.tar.gz
eclipse.jdt.core-5dc1f71dd265cfbdbcfc43c68f274261f9bd06f2.tar.xz
eclipse.jdt.core-5dc1f71dd265cfbdbcfc43c68f274261f9bd06f2.zip
Bug 566900 - Remove derby from releng scripts and toolsI20200921-1800
Derby database is gone for few years already so this code can't do anything. Further more the parameters hardcoded point that this hasn't been run since 2007(!!!). This is needed so derby code can finally be stripped out of performance test bundles. Change-Id: I7c5524d59a1ee7759f81240b74e96734713545f3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/util/View.java108
1 files changed, 0 insertions, 108 deletions
diff --git a/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/util/View.java b/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/util/View.java
deleted file mode 100644
index aa0f90e001..0000000000
--- a/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/util/View.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 IBM Corporation and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jdt.core.tests.performance.util;
-
-import java.io.BufferedOutputStream;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.PrintStream;
-
-import org.eclipse.test.internal.performance.PerformanceTestPlugin;
-import org.eclipse.test.internal.performance.data.Dim;
-import org.eclipse.test.internal.performance.db.DB;
-import org.eclipse.test.internal.performance.db.Report;
-import org.eclipse.test.internal.performance.db.Scenario;
-import org.eclipse.test.internal.performance.db.TimeSeries;
-import org.eclipse.test.internal.performance.db.Variations;
-
-/**
- * Dumps performance data to stdout.
- */
-public class View {
-
-public static void main(String[] args) {
-
- Variations variations = PerformanceTestPlugin.getVariations();
- variations.put("config", "eclipseperflnx1_R3.3"); //$NON-NLS-1$//$NON-NLS-2$
- variations.put("build", "I2007%"); //$NON-NLS-1$//$NON-NLS-2$
- variations.put("jvm", "sun"); //$NON-NLS-1$//$NON-NLS-2$
-
- String scenarioPattern = "%testFullBuildProject%"; //$NON-NLS-1$
-
- String seriesKey = PerformanceTestPlugin.BUILD;
-
- String outFile = null;
- if (args != null && args.length > 0) {
- outFile = args[0];
- }
- // outFile= "/tmp/dbdump"; //$NON-NLS-1$
- PrintStream ps = null;
- if (outFile != null) {
- try {
- ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(outFile)));
- } catch (FileNotFoundException e) {
- System.err.println("can't create output file"); //$NON-NLS-1$
- }
- }
- if (ps == null)
- ps = System.out;
-
- Scenario[] scenarios = DB.queryScenarios(variations, scenarioPattern, seriesKey, null);
- System.out.println(scenarios.length + " Scenarios"); //$NON-NLS-1$
- System.out.println();
-
- for (int s = 0; s < scenarios.length; s++)
- dump(ps, scenarios[s]);
-
- if (ps != System.out)
- ps.close();
-}
-
-private static void dump(PrintStream ps, Scenario scenario) {
- // scenario.dump(ps, PerformanceTestPlugin.BUILD);
- System.out.print("Scenario: " + scenario.getScenarioName()+"..."); //$NON-NLS-1$
- ps.println("Scenario: " + scenario.getScenarioName()); //$NON-NLS-1$
- Report r = new Report(2);
-
- String[] timeSeriesLabels = scenario.getTimeSeriesLabels();
- r.addCell(PerformanceTestPlugin.BUILD + ":"); //$NON-NLS-1$
- for (int j = 0; j < timeSeriesLabels.length; j++)
- r.addCellRight(timeSeriesLabels[j]);
- r.nextRow();
-
- Dim[] dimensions = scenario.getDimensions();
- for (int i = 0; i < dimensions.length; i++) {
- Dim dim = dimensions[i];
- String dimName = dim.getName();
- if (!dimName.equals("CPU Time") && !dimName.equals("Elapsed Process") && !dimName.equals("Used Java Heap")) {
- continue;
- }
- r.addCell(dimName + ':');
-
- TimeSeries ts = scenario.getTimeSeries(dim);
- int n = ts.getLength();
- for (int j = 0; j < n; j++) {
- String stddev = ""; //$NON-NLS-1$
- double stddev2 = ts.getStddev(j);
- if (stddev2 != 0.0)
- stddev = " [" + dim.getDisplayValue(stddev2) + "]"; //$NON-NLS-1$ //$NON-NLS-2$
- r.addCellRight(dim.getDisplayValue(ts.getValue(j)) + stddev);
- }
- r.nextRow();
- }
- r.print(ps);
- ps.println();
- System.out.println("done");
-}
-}

Back to the top