1 /*******************************************************************************
2  * Copyright (c) 2004, 2010 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 
15 package org.eclipse.test.internal.performance.db;
16 
17 import org.eclipse.test.internal.performance.PerformanceTestPlugin;
18 
19 /**
20  * Dumps performance data to stdout.
21  */
22 public class View {
23 
main(String[] args)24     public static void main(String[] args) {
25 
26         Variations variations = PerformanceTestPlugin.getVariations();
27         variations.put("config", "eclipseperfwin2_R3.3"); //$NON-NLS-1$//$NON-NLS-2$
28         variations.put("build", "I200704%"); //$NON-NLS-1$//$NON-NLS-2$
29         variations.put("jvm", "sun"); //$NON-NLS-1$//$NON-NLS-2$
30 
31         String scenarioPattern = "%RevertJavaEditorTest%"; //$NON-NLS-1$
32 
33         String seriesKey = PerformanceTestPlugin.BUILD;
34 
35         Scenario[] scenarios = DB.queryScenarios(variations, scenarioPattern, seriesKey, null);
36         System.out.println(scenarios.length + " Scenarios"); //$NON-NLS-1$
37         System.out.println();
38 
39         for (int s = 0; s < scenarios.length; s++)
40             scenarios[s].dump(System.out, PerformanceTestPlugin.BUILD);
41     }
42 }
43