@@ -89,10 +89,10 @@ struct UnitTime {
8989 /// The time when the `.rmeta` file was generated, an offset in seconds
9090 /// from `start`.
9191 rmeta_time : Option < f64 > ,
92- /// Reverse deps that are freed to run after this unit finished .
93- unlocked_units : Vec < Unit > ,
94- /// Same as `unlocked_units `, but unlocked by rmeta.
95- unlocked_rmeta_units : Vec < Unit > ,
92+ /// Reverse deps that are unblocked and ready to run after this unit finishes .
93+ unblocked_units : Vec < Unit > ,
94+ /// Same as `unblocked_units `, but unblocked by rmeta.
95+ unblocked_rmeta_units : Vec < Unit > ,
9696 /// Individual compilation section durations, gathered from `--json=timings`.
9797 ///
9898 /// IndexMap is used to keep original insertion order, we want to be able to tell which
@@ -127,8 +127,8 @@ struct UnitData {
127127 start : f64 ,
128128 duration : f64 ,
129129 rmeta_time : Option < f64 > ,
130- unlocked_units : Vec < usize > ,
131- unlocked_rmeta_units : Vec < usize > ,
130+ unblocked_units : Vec < usize > ,
131+ unblocked_rmeta_units : Vec < usize > ,
132132 sections : Option < Vec < ( String , report:: SectionData ) > > ,
133133}
134134
@@ -216,15 +216,15 @@ impl<'gctx> Timings<'gctx> {
216216 start : self . start . elapsed ( ) . as_secs_f64 ( ) ,
217217 duration : 0.0 ,
218218 rmeta_time : None ,
219- unlocked_units : Vec :: new ( ) ,
220- unlocked_rmeta_units : Vec :: new ( ) ,
219+ unblocked_units : Vec :: new ( ) ,
220+ unblocked_rmeta_units : Vec :: new ( ) ,
221221 sections : Default :: default ( ) ,
222222 } ;
223223 assert ! ( self . active. insert( id, unit_time) . is_none( ) ) ;
224224 }
225225
226226 /// Mark that the `.rmeta` file as generated.
227- pub fn unit_rmeta_finished ( & mut self , id : JobId , unlocked : Vec < & Unit > ) {
227+ pub fn unit_rmeta_finished ( & mut self , id : JobId , unblocked : Vec < & Unit > ) {
228228 if !self . enabled {
229229 return ;
230230 }
@@ -236,18 +236,18 @@ impl<'gctx> Timings<'gctx> {
236236 } ;
237237 let t = self . start . elapsed ( ) . as_secs_f64 ( ) ;
238238 unit_time. rmeta_time = Some ( t - unit_time. start ) ;
239- assert ! ( unit_time. unlocked_rmeta_units . is_empty( ) ) ;
239+ assert ! ( unit_time. unblocked_rmeta_units . is_empty( ) ) ;
240240 unit_time
241- . unlocked_rmeta_units
242- . extend ( unlocked . iter ( ) . cloned ( ) . cloned ( ) ) ;
241+ . unblocked_rmeta_units
242+ . extend ( unblocked . iter ( ) . cloned ( ) . cloned ( ) ) ;
243243 }
244244
245245 /// Mark that a unit has finished running.
246246 pub fn unit_finished (
247247 & mut self ,
248248 build_runner : & BuildRunner < ' _ , ' _ > ,
249249 id : JobId ,
250- unlocked : Vec < & Unit > ,
250+ unblocked : Vec < & Unit > ,
251251 ) {
252252 if !self . enabled {
253253 return ;
@@ -258,10 +258,10 @@ impl<'gctx> Timings<'gctx> {
258258 } ;
259259 let t = self . start . elapsed ( ) . as_secs_f64 ( ) ;
260260 unit_time. duration = t - unit_time. start ;
261- assert ! ( unit_time. unlocked_units . is_empty( ) ) ;
261+ assert ! ( unit_time. unblocked_units . is_empty( ) ) ;
262262 unit_time
263- . unlocked_units
264- . extend ( unlocked . iter ( ) . cloned ( ) . cloned ( ) ) ;
263+ . unblocked_units
264+ . extend ( unblocked . iter ( ) . cloned ( ) . cloned ( ) ) ;
265265 if self . report_json {
266266 let msg = machine_message:: TimingInfo {
267267 package_id : unit_time. unit . pkg . package_id ( ) . to_spec ( ) ,
0 commit comments