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

Examples of org.eclipse.jdt.internal.compiler.impl.CompilerStats.elapsedTime()


      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


}

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

      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 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 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 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

}

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

TOP
Copyright © 2018 www.massapi.com. 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.