1 11 package org.eclipse.test.internal.performance.db; 12 13 import java.io.BufferedOutputStream ; 14 import java.io.FileNotFoundException ; 15 import java.io.FileOutputStream ; 16 import java.io.PrintStream ; 17 18 import org.eclipse.test.internal.performance.PerformanceTestPlugin; 19 20 23 public class View { 24 25 public static void main(String [] args) { 26 27 Variations variations= PerformanceTestPlugin.getVariations(); 28 variations.put("config", "relengbuildwin2"); variations.put("build", "I%"); 31 String scenarioPattern= "%RevertJavaEditorTest%"; 33 String seriesKey= "build"; 35 36 String outFile= null; 37 PrintStream ps= null; 39 if (outFile != null) { 40 try { 41 ps= new PrintStream (new BufferedOutputStream (new FileOutputStream (outFile))); 42 } catch (FileNotFoundException e) { 43 System.err.println("can't create output file"); } 45 } 46 if (ps == null) 47 ps= System.out; 48 49 Scenario[] scenarios= DB.queryScenarios(variations, scenarioPattern, seriesKey, null); 50 ps.println(scenarios.length + " Scenarios"); ps.println(); 52 53 for (int s= 0; s < scenarios.length; s++) 54 scenarios[s].dump(ps, PerformanceTestPlugin.BUILD); 55 56 if (ps != System.out) 57 ps.close(); 58 } 59 } 60 | Popular Tags |