Package com.google.gwt.dev.util

Examples of com.google.gwt.dev.util.TinyCompileSummary


      if (options.isSoycEnabled() || options.isJsonSoycEnabled()) {
        SourceInfoCorrelator.exec(jprogram);
      }

      // Gathers simple metrics that can highlight overly-large modules in an incremental compile.
      TinyCompileSummary tinyCompileSummary = compilerContext.getTinyCompileSummary();
      tinyCompileSummary.setTypesForGeneratorsCount(
          rpo.getGeneratorContext().getTypeOracle().getTypes().length);
      tinyCompileSummary.setTypesForAstCount(jprogram.getDeclaredTypes().size());
      tinyCompileSummary.setStaticSourceFilesCount(compilationState.getStaticSourceCount());
      tinyCompileSummary.setGeneratedSourceFilesCount(compilationState.getGeneratedSourceCount());
      tinyCompileSummary.setCachedStaticSourceFilesCount(
          compilationState.getCachedStaticSourceCount());
      tinyCompileSummary.setCachedGeneratedSourceFilesCount(
          compilationState.getCachedGeneratedSourceCount());

      // Free up memory.
      rpo.clear();
      Set<String> deletedTypeNames = options.isIncrementalCompileEnabled()
View Full Code Here


    long durationMs = System.currentTimeMillis() - beforeCompileMs;
    TreeLogger detailBranch = logger.branch(TreeLogger.INFO,
        String.format("%.3fs -- Translating Java to Javascript", durationMs / 1000d));

    TinyCompileSummary tinyCompileSummary = compilerContext.getTinyCompileSummary();
    boolean shouldWarn =
        tinyCompileSummary.getTypesForGeneratorsCount() + tinyCompileSummary.getTypesForAstCount()
        > 1500;
    String recommendation = shouldWarn ? " This module should probably be split into smaller "
        + "modules or should trigger fewer generators since its current size hurts "
        + "incremental compiles." : "";
    detailBranch.log(shouldWarn ? TreeLogger.WARN : TreeLogger.INFO, String.format(
        "There were %s static source files, %s generated source files, %s types loaded for "
        + "generators and %s types loaded for AST construction. %s",
        tinyCompileSummary.getStaticSourceFilesCount(),
        tinyCompileSummary.getGeneratedSourceFilesCount(),
        tinyCompileSummary.getTypesForGeneratorsCount(), tinyCompileSummary.getTypesForAstCount(),
        recommendation));
  }
View Full Code Here

    long durationMs = System.currentTimeMillis() - beforeCompileMs;
    TreeLogger detailBranch = logger.branch(TreeLogger.INFO,
        String.format("%.3fs -- Translating Java to Javascript", durationMs / 1000d));

    TinyCompileSummary tinyCompileSummary = compilerContext.getTinyCompileSummary();
    boolean shouldWarn =
        tinyCompileSummary.getTypesForGeneratorsCount() + tinyCompileSummary.getTypesForAstCount()
        > 1500;
    String recommendation = shouldWarn ? " This module should probably be split into smaller "
        + "modules or should trigger fewer generators since its current size hurts "
        + "incremental compiles." : "";
    detailBranch.log(shouldWarn ? TreeLogger.WARN : TreeLogger.INFO, String.format(
        "There were %s static source files, %s generated source files, %s types loaded for "
        + "generators and %s types loaded for AST construction. %s",
        tinyCompileSummary.getStaticSourceFilesCount(),
        tinyCompileSummary.getGeneratedSourceFilesCount(),
        tinyCompileSummary.getTypesForGeneratorsCount(), tinyCompileSummary.getTypesForAstCount(),
        recommendation));
  }
View Full Code Here

      if (options.isSoycEnabled() || options.isJsonSoycEnabled()) {
        SourceInfoCorrelator.exec(jprogram);
      }

      // Gathers simple metrics that can highlight overly-large modules in an incremental compile.
      TinyCompileSummary tinyCompileSummary = compilerContext.getTinyCompileSummary();
      tinyCompileSummary.setTypesForGeneratorsCount(
          rpo.getGeneratorContext().getTypeOracle().getTypes().length);
      tinyCompileSummary.setTypesForAstCount(jprogram.getDeclaredTypes().size());
      tinyCompileSummary.setStaticSourceFilesCount(compilationState.getStaticSourceCount());
      tinyCompileSummary.setGeneratedSourceFilesCount(compilationState.getGeneratedSourceCount());
      tinyCompileSummary.setCachedStaticSourceFilesCount(
          compilationState.getCachedStaticSourceCount());
      tinyCompileSummary.setCachedGeneratedSourceFilesCount(
          compilationState.getCachedGeneratedSourceCount());

      // Free up memory.
      rpo.clear();
      jprogram.typeOracle.computeBeforeAST();
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.util.TinyCompileSummary

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.