We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b41d7b commit c4897f8Copy full SHA for c4897f8
src/boot/driver/main.ml
@@ -423,14 +423,17 @@ exit_if_failed ()
423
if sess.Session.sess_report_timing
424
then
425
begin
426
+ let cumulative = ref 0.0 in
427
Printf.fprintf stdout "timing:\n\n";
428
Array.iter
429
430
fun name ->
- Printf.fprintf stdout "%20s: %f\n" name
431
- (Hashtbl.find sess.Session.sess_timings name)
+ let t = Hashtbl.find sess.Session.sess_timings name in
432
+ Printf.fprintf stdout "%20s: %f\n" name t;
433
+ cumulative := (!cumulative) +. t
434
end
- (sorted_htab_keys sess.Session.sess_timings)
435
+ (sorted_htab_keys sess.Session.sess_timings);
436
+ Printf.fprintf stdout "\n%20s: %f\n" "cumulative" (!cumulative)
437
end;
438
;;
439
0 commit comments