File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ Each new feature described below should explain how to use it.
113
113
* [ Build-plan] ( #build-plan ) --- Emits JSON information on which commands will be run.
114
114
* [ unit-graph] ( #unit-graph ) --- Emits JSON for Cargo's internal graph structure.
115
115
* [ ` cargo rustc --print ` ] ( #rustc---print ) --- Calls rustc with ` --print ` to display information from rustc.
116
+ * [ Build analysis] ( #build-analysis ) --- Record and persist detailed build metrics across runs, with new commands to query past builds.
116
117
* Configuration
117
118
* [ config-include] ( #config-include ) --- Adds the ability for config files to include other files.
118
119
* [ ` cargo config ` ] ( #cargo-config ) --- Adds a new subcommand for viewing config files.
@@ -1922,6 +1923,22 @@ HTML/JSON output.
1922
1923
cargo +nightly -Zsection-timings build --timings
1923
1924
```
1924
1925
1926
+ ## Build analysis
1927
+
1928
+ * Original Issue: [ rust-lang/rust-project-goals #332 ] ( https://github.com/rust-lang/rust-project-goals/pull/332 )
1929
+ * Tracking Issue: [ #15844 ] ( https://github.com/rust-lang/cargo/issues/15844 )
1930
+
1931
+ The ` -Zbuild-analysis ` feature records and persists detailed build metrics
1932
+ (timings, rebuild reasons, etc.) across runs, with new commands to query past builds.
1933
+
1934
+ ``` toml
1935
+ # Example config.toml file.
1936
+
1937
+ # Enable the build metric collection
1938
+ [build .analysis ]
1939
+ enabled = true
1940
+ ```
1941
+
1925
1942
# Stabilized and removed features
1926
1943
1927
1944
## Compile progress
You can’t perform that action at this time.
0 commit comments