Add --summary flag to bloop compile#2960
Merged
Merged
Conversation
Prints a per-module compile summary after the compile run completes. Opt-in via --summary so it does not affect interactive or IDE use. The summary shows: - Each project's compile time (slowest first), annotated (failed) or (cancelled) when the compile did not succeed - Projects blocked on a failed upstream (e.g. "b - blocked on a"), sourced from the dag closure so repeated failures don't drop them - Total module compile time (sum of per-module times) - Wall-clock duration (covers the full run, including any --incremental false clean step)
tgodzik
approved these changes
Jun 11, 2026
tgodzik
left a comment
Contributor
There was a problem hiding this comment.
LGTM! That's a nice improvement
tgodzik
requested changes
Jun 11, 2026
tgodzik
left a comment
Contributor
There was a problem hiding this comment.
bloop.AutoCompleteSpec is failing again due to added flag, should be fine otherwise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1367.
Summary
Adds
bloop compile --summary, an opt-in flag that prints a compilation timing report at the end of a compile run. The feature is off by default so it does not affect interactive or IDE/BSP use.Example output for a 4-module build where
dwas blocked by a failure inc:Key design decisions:
Commands.Compileand does not affect the Test/Run/Link paths throughcompileAnd.Dag.dfs(getProjectsDag(…))rather thanResultsCache.diffLatest, so every project in the requested compile closure is rendered on every run, including repeated failures where aBlockedresult would be structurally equal to the cached one and would otherwise be dropped.Total module compile timeis the sum of per-module elapsed times (can exceed wall-clock under parallel/pipelined compilation);Wall-clock durationis aSystem.nanoTimemeasurement around the entirerunCompilecall, including the--incremental falseclean step.