diff --git a/src/main/java/com/google/devtools/build/lib/packages/metrics/ExtremaPackageMetricsRecorder.java b/src/main/java/com/google/devtools/build/lib/packages/metrics/ExtremaPackageMetricsRecorder.java index 8d57748fb3c77d..cc8bb81838df80 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/metrics/ExtremaPackageMetricsRecorder.java +++ b/src/main/java/com/google/devtools/build/lib/packages/metrics/ExtremaPackageMetricsRecorder.java @@ -129,11 +129,11 @@ public synchronized void loadingFinished() { c -> Durations.toMillis(c.getPackageMetricsInternal().getLoadDuration())); logIfNonEmpty( "Largest packages (num targets)", - packagesWithMostComputationSteps.getExtremeElements(), + largestPackages.getExtremeElements(), c -> c.getPackageMetricsInternal().getNumTargets()); logIfNonEmpty( "Packages with most computation steps", - largestPackages.getExtremeElements(), + packagesWithMostComputationSteps.getExtremeElements(), c -> c.getPackageMetricsInternal().getComputationSteps()); logIfNonEmpty( "Packages with most transitive loads (num bzl files)",