@@ -201,6 +201,7 @@ impl flags::AnalysisStats {
201
201
}
202
202
203
203
fn run_data_layout ( & self , db : & RootDatabase , adts : & [ hir:: Adt ] , verbosity : Verbosity ) {
204
+ let mut sw = self . stop_watch ( ) ;
204
205
let mut all = 0 ;
205
206
let mut fail = 0 ;
206
207
for & a in adts {
@@ -225,11 +226,13 @@ impl flags::AnalysisStats {
225
226
}
226
227
fail += 1 ;
227
228
}
229
+ eprintln ! ( "{:<20} {}" , "Data layouts:" , sw. elapsed( ) ) ;
228
230
eprintln ! ( "Failed data layouts: {fail} ({}%)" , fail * 100 / all) ;
229
231
report_metric ( "failed data layouts" , fail, "#" ) ;
230
232
}
231
233
232
234
fn run_const_eval ( & self , db : & RootDatabase , consts : & [ hir:: Const ] , verbosity : Verbosity ) {
235
+ let mut sw = self . stop_watch ( ) ;
233
236
let mut all = 0 ;
234
237
let mut fail = 0 ;
235
238
for & c in consts {
@@ -250,11 +253,13 @@ impl flags::AnalysisStats {
250
253
}
251
254
fail += 1 ;
252
255
}
256
+ eprintln ! ( "{:<20} {}" , "Const evaluation:" , sw. elapsed( ) ) ;
253
257
eprintln ! ( "Failed const evals: {fail} ({}%)" , fail * 100 / all) ;
254
258
report_metric ( "failed const evals" , fail, "#" ) ;
255
259
}
256
260
257
261
fn run_mir_lowering ( & self , db : & RootDatabase , funcs : & [ Function ] , verbosity : Verbosity ) {
262
+ let mut sw = self . stop_watch ( ) ;
258
263
let all = funcs. len ( ) as u64 ;
259
264
let mut fail = 0 ;
260
265
for f in funcs {
@@ -274,6 +279,7 @@ impl flags::AnalysisStats {
274
279
}
275
280
fail += 1 ;
276
281
}
282
+ eprintln ! ( "{:<20} {}" , "MIR lowering:" , sw. elapsed( ) ) ;
277
283
eprintln ! ( "Mir failed bodies: {fail} ({}%)" , fail * 100 / all) ;
278
284
report_metric ( "mir failed bodies" , fail, "#" ) ;
279
285
}
0 commit comments