com.google.javascript.jscomp
Class PerformanceTracker

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

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


Nested Class Summary
static class PerformanceTracker.Stats
          A Stats object contains statistics about a pass run, such as running time, size changes, etc
 
Method Summary
 int getGzSize()
           
 int getRuntime()
           
 int getSize()
           
 com.google.common.collect.ImmutableMap<String,PerformanceTracker.Stats> getStats()
           
 void outputTracerReport(PrintStream pstr)
          Prints a summary, which contains aggregate stats for all runs of each pass and a log, which contains stats for each individual run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRuntime

public int getRuntime()

getSize

public int getSize()

getGzSize

public int getGzSize()

getStats

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

outputTracerReport

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