feat: Add timing and QUIET mode to Makefile#121
Open
angerman wants to merge 2 commits intostable-ghc-9.14from
Open
feat: Add timing and QUIET mode to Makefile#121angerman wants to merge 2 commits intostable-ghc-9.14from
angerman wants to merge 2 commits intostable-ghc-9.14from
Conversation
Author
0f34a55 to
21a35da
Compare
9cbe6d3 to
a206e83
Compare
Author
|
Yikes, so many conflicts. |
51d67c3 to
c94ded3
Compare
Add build phase timing instrumentation to the Makefile: - QUIET mode (QUIET=1): suppresses build output, logs to files - Phase timing via mk/run-phase.sh wrapper: records start/end/status for each build phase (cabal, stage1, stage2, stage2-utils, test) - Bindist phase uses inline timing (avoids recursive $(MAKE) which breaks on FreeBSD where MAKE env var points to BSD make) - timing-summary target: displays ASCII table of phase durations New files: mk/run-phase.sh - Phase execution wrapper with timing support mk/timing-summary.sh - ASCII table display of phase durations
Add system resource monitoring to CI builds: - mk/collect-metrics.sh: cross-platform (Linux/macOS) background process that samples CPU% and memory usage to CSV - mk/plot-metrics.py: generates dual-axis SVG plots (CPU + memory) with build phase annotations - CI workflow: start/stop metrics collection around build+test, generate plots, upload to R2, embed in GitHub Job Summary - Upload build logs and timing as artifacts
c94ded3 to
c3550a8
Compare
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.
Summary
QUIET=1mode to suppress output unless there's an error_build/timing/summary.txtQUIET=1in devx CI workflowUsage
Example Output
Test plan
makeand verify timing summary appears at endmake QUIET=1and verify output is suppressed_build/logs/_build/timing/summary.txt