We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3dae534 commit 57f01cdCopy full SHA for 57f01cd
src/bootstrap/src/utils/metrics.rs
@@ -200,6 +200,11 @@ impl BuildMetrics {
200
}
201
};
202
invocations.push(JsonInvocation {
203
+ cmdline: std::env::args_os()
204
+ .skip(1)
205
+ .map(|arg| arg.to_string_lossy().to_string())
206
+ .collect::<Vec<_>>()
207
+ .join(" "),
208
start_time: state
209
.invocation_start
210
.duration_since(SystemTime::UNIX_EPOCH)
src/build_helper/src/metrics.rs
@@ -12,6 +12,8 @@ pub struct JsonRoot {
12
#[derive(Serialize, Deserialize)]
13
#[serde(rename_all = "snake_case")]
14
pub struct JsonInvocation {
15
+ // Remembers the command-line invocation with which was bootstrap invoked.
16
+ pub cmdline: String,
17
// Unix timestamp in seconds
18
//
19
// This is necessary to easily correlate this invocation with logs or other data.
0 commit comments