Search in sources :

Example 6 with PhaseStatistics

use of com.google.devtools.build.lib.profiler.statistics.PhaseStatistics in project bazel by bazelbuild.

the class PhaseHtml method print.

/**
   * Print tables from {@link #phaseSummaryStats} and {@link #phaseStatistics} side by side.
   */
public void print() {
    printPhaseSummaryStatistics();
    for (ProfilePhase phase : Arrays.asList(ProfilePhase.INIT, ProfilePhase.LOAD, ProfilePhase.ANALYZE)) {
        PhaseStatistics statistics = phaseStatistics.get(phase);
        if (statistics == null || !statistics.wasExecuted()) {
            continue;
        }
        printPhaseStatistics(statistics);
    }
    printExecutionPhaseStatistics();
    lnElement("div", "style", "clear: both;");
}
Also used : ProfilePhase(com.google.devtools.build.lib.profiler.ProfilePhase) PhaseStatistics(com.google.devtools.build.lib.profiler.statistics.PhaseStatistics)

Aggregations

PhaseStatistics (com.google.devtools.build.lib.profiler.statistics.PhaseStatistics)6 ProfilePhase (com.google.devtools.build.lib.profiler.ProfilePhase)4 Path (com.google.devtools.build.lib.vfs.Path)2 ProfileInfo (com.google.devtools.build.lib.profiler.ProfileInfo)1 ProfilerTask (com.google.devtools.build.lib.profiler.ProfilerTask)1 PhaseText (com.google.devtools.build.lib.profiler.output.PhaseText)1 CriticalPathStatistics (com.google.devtools.build.lib.profiler.statistics.CriticalPathStatistics)1 MultiProfileStatistics (com.google.devtools.build.lib.profiler.statistics.MultiProfileStatistics)1 PhaseSummaryStatistics (com.google.devtools.build.lib.profiler.statistics.PhaseSummaryStatistics)1 BufferedOutputStream (java.io.BufferedOutputStream)1 IOException (java.io.IOException)1 PrintStream (java.io.PrintStream)1 EnumMap (java.util.EnumMap)1