Package com.google.javascript.jscomp
Class PerformanceTracker
java.lang.Object
com.google.javascript.jscomp.PerformanceTracker
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Stats object contains statistics about a pass run, such as running time, size changes, etc -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getSize()
com.google.common.collect.ImmutableMap
<String, PerformanceTracker.Stats> getStats()
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.void
setAmbiguatePropertiesSummary
(String summary) void
setDisambiguatePropertiesSummary
(String summary) boolean
boolean
boolean
boolean
-
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
-
setDisambiguatePropertiesSummary
-
setAmbiguatePropertiesSummary
-
outputTracerReport
Prints a summary, which contains aggregate stats for all runs of each pass and a log, which contains stats for each individual run.
-