aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java b/src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java
index 55655576d9..b8e303b3f1 100644
--- a/src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java
+++ b/src/main/java/com/google/devtools/build/lib/profiler/statistics/PhaseStatistics.java
@@ -26,6 +26,8 @@ import java.util.EnumMap;
import java.util.Iterator;
import java.util.List;
+import javax.annotation.Nullable;
+
/**
* Extracts and keeps statistics for one {@link ProfilePhase} for formatting to various outputs.
*/
@@ -38,7 +40,6 @@ public final class PhaseStatistics implements Iterable<ProfilerTask> {
private final EnumMap<ProfilerTask, Long> taskCounts;
private final PhaseVfsStatistics vfsStatistics;
private boolean wasExecuted;
- private int count;
public PhaseStatistics(ProfilePhase phase, boolean generateVfsStatistics) {
this.phase = phase;
@@ -84,7 +85,6 @@ public final class PhaseStatistics implements Iterable<ProfilerTask> {
add(taskCounts, type, count);
add(taskDurations, type, totalTime);
}
- count++;
}
}
@@ -107,21 +107,14 @@ public final class PhaseStatistics implements Iterable<ProfilerTask> {
add(taskCounts, type, otherCount);
add(taskDurations, type, otherDuration);
}
- count++;
}
}
- /**
- * @return how many executions of this phase were accumulated
- */
- public int getPhaseCount() {
- return count;
- }
-
public ProfilePhase getProfilePhase() {
return phase;
}
+ @Nullable
public PhaseVfsStatistics getVfsStatistics() {
return vfsStatistics;
}
@@ -144,10 +137,6 @@ public final class PhaseStatistics implements Iterable<ProfilerTask> {
return phaseDurationNanos;
}
- public long getTotalDurationNanos() {
- return totalDurationNanos;
- }
-
/**
* @return true if a task of the given {@link ProfilerTask} type was executed in this phase
*/