File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 1b41d7be1ab43594982361f58e49e2d399ccbfb4
2
+ refs/heads/master: c4897f849c1266506cfbd42a1c53c2866a7b4a1e
Original file line number Diff line number Diff line change @@ -423,14 +423,17 @@ exit_if_failed ()
423
423
if sess.Session. sess_report_timing
424
424
then
425
425
begin
426
+ let cumulative = ref 0.0 in
426
427
Printf. fprintf stdout " timing:\n\n " ;
427
428
Array. iter
428
429
begin
429
430
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
432
434
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)
434
437
end;
435
438
;;
436
439
You can’t perform that action at this time.
0 commit comments