Package org.eclipse.jdt.internal.compiler.impl

Examples of org.eclipse.jdt.internal.compiler.impl.CompilerStats


      long lineCount = this.main.compilerStats[0].lineCount;
      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here


      final boolean isTimed = (this.main.timing & TIMING_ENABLED) != 0;
      if ((this.tagBits & Logger.XML) != 0) {
        printTag(Logger.STATS, null, true, false);
      }
      if (isTimed) {
        CompilerStats compilerStats = this.main.batchCompiler.stats;
        compilerStats.startTime = this.main.startTime; // also include batch initialization times
        compilerStats.endTime = System.currentTimeMillis(); // also include batch output times
        logTiming(compilerStats);
      }
      if (this.main.globalProblemsCount > 0) {
View Full Code Here

  return null;
}

private void printStats() {
  if (this.compiler == null) return;
  CompilerStats compilerStats = this.compiler.stats;
  long time = compilerStats.elapsedTime();
  long lineCount = compilerStats.lineCount;
  double speed = ((int) (lineCount * 10000.0 / time)) / 10.0;
  System.out.println(">FULL BUILD STATS for: "+this.javaBuilder.javaProject.getElementName()); //$NON-NLS-1$
  System.out.println(">   compiled " + lineCount + " lines in " + time + "ms:" + speed + "lines/s"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
  System.out.print(">   parse: " + compilerStats.parseTime + " ms (" + ((int) (compilerStats.parseTime * 1000.0 / time)) / 10.0 + "%)"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here

      long lineCount = this.main.compilerStats[0].lineCount;
      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here

      final boolean isTimed = (this.main.timing & TIMING_ENABLED) != 0;
      if ((this.tagBits & Logger.XML) != 0) {
        printTag(Logger.STATS, null, true, false);
      }
      if (isTimed) {
        CompilerStats compilerStats = this.main.batchCompiler.stats;
        compilerStats.startTime = this.main.startTime; // also include batch initialization times
        compilerStats.endTime = System.currentTimeMillis(); // also include batch output times
        logTiming(compilerStats);
      }
      if (this.main.globalProblemsCount > 0) {
View Full Code Here

      long lineCount = this.main.compilerStats[0].lineCount;
      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here

      final boolean isTimed = (this.main.timing & TIMING_ENABLED) != 0;
      if ((this.tagBits & Logger.XML) != 0) {
        printTag(Logger.STATS, null, true, false);
      }
      if (isTimed) {
        CompilerStats compilerStats = this.main.batchCompiler.stats;
        compilerStats.startTime = this.main.startTime; // also include batch initialization times
        compilerStats.endTime = System.currentTimeMillis(); // also include batch output times
        logTiming(compilerStats);
      }
      if (this.main.globalProblemsCount > 0) {
View Full Code Here

      long lineCount = this.main.compilerStats[0].lineCount;
      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here

      final boolean isTimed = (this.main.timing & TIMING_ENABLED) != 0;
      if ((this.tagBits & Logger.XML) != 0) {
        printTag(Logger.STATS, null, true, false);
      }
      if (isTimed) {
        CompilerStats compilerStats = this.main.batchCompiler.stats;
        compilerStats.startTime = this.main.startTime; // also include batch initialization times
        compilerStats.endTime = System.currentTimeMillis(); // also include batch output times
        logTiming(compilerStats);
      }
      if (this.main.globalProblemsCount > 0) {
View Full Code Here

      long lineCount = this.main.compilerStats[0].lineCount;
      final int length = this.main.maxRepetition;
      long sum = 0;
      long parseSum = 0, resolveSum = 0, analyzeSum = 0, generateSum = 0;
      for (int i = 1, max = length - 1; i < max; i++) {
        CompilerStats stats = this.main.compilerStats[i];
        sum += stats.elapsedTime();
        parseSum += stats.parseTime;
        resolveSum += stats.resolveTime;
        analyzeSum += stats.analyzeTime;
        generateSum += stats.generateTime;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.impl.CompilerStats

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.