We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36f770 commit 0d8bf72Copy full SHA for 0d8bf72
config.toml.example
@@ -290,6 +290,12 @@ changelog-seen = 2
290
# tracking over time)
291
#print-step-timings = false
292
293
+# Print out resource usage data for each rustbuild step, as defined by the Unix
294
+# struct rusage. (Note that this setting is completely unstable: the data it
295
+# captures, what platforms it supports, the format of its associated output, and
296
+# this setting's very existence, are all subject to change.)
297
+#print-step-rusage = false
298
+
299
# =============================================================================
300
# General install configuration options
301
src/bootstrap/builder.rs
@@ -1259,6 +1259,10 @@ impl<'a> Builder<'a> {
1259
cargo.env("RUSTC_PRINT_STEP_TIMINGS", "1");
1260
}
1261
1262
+ if self.config.print_step_rusage {
1263
+ cargo.env("RUSTC_PRINT_STEP_RUSAGE", "1");
1264
+ }
1265
1266
if self.config.backtrace_on_ice {
1267
cargo.env("RUSTC_BACKTRACE_ON_ICE", "1");
1268
src/bootstrap/config.rs
@@ -161,6 +161,7 @@ pub struct Config {
161
pub verbose_tests: bool,
162
pub save_toolstates: Option<PathBuf>,
163
pub print_step_timings: bool,
164
+ pub print_step_rusage: bool,
165
pub missing_tools: bool,
166
167
// Fallback musl-root for all targets
@@ -380,6 +381,7 @@ struct Build {
380
381
configure_args: Option<Vec<String>>,
382
local_rebuild: Option<bool>,
383
print_step_timings: Option<bool>,
384
+ print_step_rusage: Option<bool>,
385
check_stage: Option<u32>,
386
doc_stage: Option<u32>,
387
build_stage: Option<u32>,
@@ -679,6 +681,7 @@ impl Config {
679
681
set(&mut config.configure_args, build.configure_args);
680
682
set(&mut config.local_rebuild, build.local_rebuild);
683
set(&mut config.print_step_timings, build.print_step_timings);
684
+ set(&mut config.print_step_rusage, build.print_step_rusage);
685
686
// See https://github.com/rust-lang/compiler-team/issues/326
687
config.stage = match config.cmd {
0 commit comments