diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-02-19 16:06:47 +0100 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-03-04 12:30:41 +0100 |
| commit | 2e5ab4e6a07a9ebdb6e593ca19112148250e6906 (patch) | |
| tree | 70ac1a7cd6be0ca2a5fc84239b95caf89dc2cb79 /src/bootstrap | |
| parent | 6463590f0ce9ae9113bba171d8f9ea0d64c7e47a (diff) | |
| download | rust-2e5ab4e6a07a9ebdb6e593ca19112148250e6906.tar.gz rust-2e5ab4e6a07a9ebdb6e593ca19112148250e6906.zip | |
Store bootstrap command-line into metrics
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/utils/metrics.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/src/utils/metrics.rs b/src/bootstrap/src/utils/metrics.rs index b51fd490535..57766fd63fb 100644 --- a/src/bootstrap/src/utils/metrics.rs +++ b/src/bootstrap/src/utils/metrics.rs @@ -200,6 +200,14 @@ impl BuildMetrics { } }; invocations.push(JsonInvocation { + // The command-line invocation with which bootstrap was invoked. + // Skip the first argument, as it is a potentially long absolute + // path that is not interesting. + cmdline: std::env::args_os() + .skip(1) + .map(|arg| arg.to_string_lossy().to_string()) + .collect::<Vec<_>>() + .join(" "), start_time: state .invocation_start .duration_since(SystemTime::UNIX_EPOCH) |
