| /******************************************************************************* |
| * Copyright (c) 2004, 2010 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.test.internal.performance.db; |
| |
| import org.eclipse.test.internal.performance.PerformanceTestPlugin; |
| |
| /** |
| * Dumps performance data to stdout. |
| */ |
| public class View { |
| |
| public static void main(String[] args) { |
| |
| Variations variations = PerformanceTestPlugin.getVariations(); |
| variations.put("config", "eclipseperfwin2_R3.3"); //$NON-NLS-1$//$NON-NLS-2$ |
| variations.put("build", "I200704%"); //$NON-NLS-1$//$NON-NLS-2$ |
| variations.put("jvm", "sun"); //$NON-NLS-1$//$NON-NLS-2$ |
| |
| String scenarioPattern = "%RevertJavaEditorTest%"; //$NON-NLS-1$ |
| |
| String seriesKey = PerformanceTestPlugin.BUILD; |
| |
| Scenario[] scenarios = DB.queryScenarios(variations, scenarioPattern, seriesKey, null); |
| System.out.println(scenarios.length + " Scenarios"); //$NON-NLS-1$ |
| System.out.println(); |
| |
| for (Scenario scenario : scenarios) |
| scenario.dump(System.out, PerformanceTestPlugin.BUILD); |
| } |
| } |