Package org.eclipse.test.performance

Examples of org.eclipse.test.performance.Dimension


                if (commentKind == Performance.EXPLAINS_DEGRADATION_COMMENT && comment != null)
                    commentId= fSQL.getCommentId(commentKind, comment);
               
                Dimension[] summaryDimensions= sample.getSummaryDimensions();
                for (int i= 0; i < summaryDimensions.length; i++) {
                    Dimension dimension= summaryDimensions[i];
                    if (dimension instanceof Dim)
                        fSQL.createSummaryEntry(variation_id, scenario_id, ((Dim)dimension).getId(), isGlobal, commentId);
                }
                String shortName= sample.getShortname();
                if (shortName != null)
View Full Code Here


                if (commentKind == Performance.EXPLAINS_DEGRADATION_COMMENT && comment != null)
                    commentId= fSQL.getCommentId(commentKind, comment);
               
                Dimension[] summaryDimensions= sample.getSummaryDimensions();
                for (int i= 0; i < summaryDimensions.length; i++) {
                    Dimension dimension= summaryDimensions[i];
                    if (dimension instanceof Dim)
                        fSQL.createSummaryEntry(variation_id, scenario_id, ((Dim)dimension).getId(), isGlobal, commentId);
                }
                String shortName= sample.getShortname();
                if (shortName != null)
View Full Code Here

public static Dim[] getDimensions() {
  if (DIMENSIONS == null) return NO_DIMENSION;
  int length = DIMENSIONS.length;
  Dim[] dimensions = new Dim[length];
  for (int i = 0; i < length; i++) {
    Dimension dimension = PerformanceTestPlugin.getDimension(DIMENSIONS[i]);
    if (dimension == null) {
      throw new RuntimeException("There is an unsupported dimension stored in the database: " +DIMENSIONS[i]);
    }
    dimensions[i] = (Dim) dimension;
    }
View Full Code Here

   * does not match any known dimensions name.
   */
  public static Dimension getDefaultDimension() {
    String defaultDim = System.getProperty(ECLIPSE_PERF_DEFAULT_DIM);
    if (defaultDim == nullreturn DEFAULT_DIMENSION;
    Dimension dimension = getDimension(defaultDim);
    Assert.isNotNull(dimension, "Invalid default dimension found in system property '"+ECLIPSE_PERF_DEFAULT_DIM+"': "+defaultDim); //$NON-NLS-1$ //$NON-NLS-2$
    return dimension;
  }
View Full Code Here

    if (resultsDimension == nullreturn DEFAULT_RESULTS_DIMENSIONS;
    StringTokenizer tokenizer = new StringTokenizer(resultsDimension, ","); //$NON-NLS-1$
    List list = new ArrayList();
    while (tokenizer.hasMoreTokens()) {
      String token = tokenizer.nextToken().trim();
      Dimension dimension = getDimension(token);
      if (dimension == null) {
        try {
          dimension = getDimension(Integer.parseInt(token));
        } catch (NumberFormatException e) {
          // skip
View Full Code Here

TOP

Related Classes of org.eclipse.test.performance.Dimension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.