You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(build-analysis): JSONL-based logging infra (#16150)
### What does this PR try to resolve?
This adds A new JSONL-based logging infrastructure for
`-Zbuild-analysis`.
Some highlights:
- JSONL logs stored in `~/.cargo/log/`.
- Unique log file for each cargo invocation,
with a run ID based on workspace hash and timestamp.
- Uses background thread for non-blocking log writes.
Open to use some other battle-tested crates in the future.
- A example `build-started` log message is added.
Note that this is completely different than the original SQLite based
design.
I realized this is better as we do writes and zero read during the
build. We shouldn't pay the cost if we don't read those metrics.
See the design doc <https://hackmd.io/K5-sGEJeR5mLGsJLXqsHrw> and
#15844
### How to test and review this PR?
`CARGO_BUILD_ANALYSIS_ENABLED=true cargo -Zbuild-analysis check`
0 commit comments