File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,14 @@ impl BuildMetrics {
200200 }
201201 } ;
202202 invocations. push ( JsonInvocation {
203+ // The command-line invocation with which bootstrap was invoked.
204+ // Skip the first argument, as it is a potentially long absolute
205+ // path that is not interesting.
206+ cmdline : std:: env:: args_os ( )
207+ . skip ( 1 )
208+ . map ( |arg| arg. to_string_lossy ( ) . to_string ( ) )
209+ . collect :: < Vec < _ > > ( )
210+ . join ( " " ) ,
203211 start_time : state
204212 . invocation_start
205213 . duration_since ( SystemTime :: UNIX_EPOCH )
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ pub struct JsonRoot {
1212#[ derive( Serialize , Deserialize ) ]
1313#[ serde( rename_all = "snake_case" ) ]
1414pub struct JsonInvocation {
15+ // Remembers the command-line invocation with which bootstrap was invoked.
16+ pub cmdline : String ,
1517 // Unix timestamp in seconds
1618 //
1719 // This is necessary to easily correlate this invocation with logs or other data.
You can’t perform that action at this time.
0 commit comments