Package com.google.javascript.jscomp
Class PerformanceTracker
- java.lang.Object
-
- com.google.javascript.jscomp.PerformanceTracker
-
public final class PerformanceTracker extends java.lang.ObjectA 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPerformanceTracker.StatsA Stats object contains statistics about a pass run, such as running time, size changes, etc
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAstSize()intgetGzSize()intgetRuntime()intgetSize()com.google.common.collect.ImmutableMap<java.lang.String,PerformanceTracker.Stats>getStats()voidoutputTracerReport(java.io.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.booleantracksAstManifest()booleantracksAstSize()booleantracksGzSize()booleantracksSize()
-
-
-
Method Detail
-
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<java.lang.String,PerformanceTracker.Stats> getStats()
-
outputTracerReport
public void outputTracerReport(java.io.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.
-
-