Skip to content

Commit ea49e05

Browse files
committed
---
yaml --- r: 372 b: refs/heads/master c: c4897f8 h: refs/heads/master v: v3
1 parent 99bac72 commit ea49e05

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1b41d7be1ab43594982361f58e49e2d399ccbfb4
2+
refs/heads/master: c4897f849c1266506cfbd42a1c53c2866a7b4a1e

trunk/src/boot/driver/main.ml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,17 @@ exit_if_failed ()
423423
if sess.Session.sess_report_timing
424424
then
425425
begin
426+
let cumulative = ref 0.0 in
426427
Printf.fprintf stdout "timing:\n\n";
427428
Array.iter
428429
begin
429430
fun name ->
430-
Printf.fprintf stdout "%20s: %f\n" name
431-
(Hashtbl.find sess.Session.sess_timings name)
431+
let t = Hashtbl.find sess.Session.sess_timings name in
432+
Printf.fprintf stdout "%20s: %f\n" name t;
433+
cumulative := (!cumulative) +. t
432434
end
433-
(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)
434437
end;
435438
;;
436439

0 commit comments

Comments
 (0)