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

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


      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

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.