Add a cumulative timer count to be sure we're getting everything.
This commit is contained in:
parent
1b41d7be1a
commit
c4897f849c
1 changed files with 6 additions and 3 deletions
|
@ -423,14 +423,17 @@ exit_if_failed ()
|
||||||
if sess.Session.sess_report_timing
|
if sess.Session.sess_report_timing
|
||||||
then
|
then
|
||||||
begin
|
begin
|
||||||
|
let cumulative = ref 0.0 in
|
||||||
Printf.fprintf stdout "timing:\n\n";
|
Printf.fprintf stdout "timing:\n\n";
|
||||||
Array.iter
|
Array.iter
|
||||||
begin
|
begin
|
||||||
fun name ->
|
fun name ->
|
||||||
Printf.fprintf stdout "%20s: %f\n" name
|
let t = Hashtbl.find sess.Session.sess_timings name in
|
||||||
(Hashtbl.find sess.Session.sess_timings name)
|
Printf.fprintf stdout "%20s: %f\n" name t;
|
||||||
|
cumulative := (!cumulative) +. t
|
||||||
end
|
end
|
||||||
(sorted_htab_keys sess.Session.sess_timings)
|
(sorted_htab_keys sess.Session.sess_timings);
|
||||||
|
Printf.fprintf stdout "\n%20s: %f\n" "cumulative" (!cumulative)
|
||||||
end;
|
end;
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue