Class PerformanceTracker

java.lang.Object
com.google.javascript.jscomp.PerformanceTracker

public final class PerformanceTracker extends Object
A PerformanceTracker collects statistics about the runtime of each pass, and how much a pass impacts the size of the compiled output, before and after gzip.
  • Method Details

    • tracksSize

      public boolean tracksSize()
    • tracksGzSize

      public boolean tracksGzSize()
    • tracksAstSize

      public boolean tracksAstSize()
    • tracksAstManifest

      public boolean tracksAstManifest()
    • getRuntime

      public int getRuntime()
    • getSize

      public int getSize()
    • getGzSize

      public int getGzSize()
    • getAstSize

      public int getAstSize()
    • getStats

      public com.google.common.collect.ImmutableMap<String,PerformanceTracker.Stats> getStats()
    • setDisambiguatePropertiesSummary

      public void setDisambiguatePropertiesSummary(String summary)
    • setAmbiguatePropertiesSummary

      public void setAmbiguatePropertiesSummary(String summary)
    • outputTracerReport

      public void outputTracerReport(PrintStream output)
      Prints a summary, which contains aggregate stats for all runs of each pass and a log, which contains stats for each individual run.