Activate timeout logging in the progress bar when developer mode is on.

Reviewed By: jberdine

Differential Revision: D3041187

fb-gh-sync-id: b1450db
shipit-source-id: b1450db
master
Cristiano Calcagno 9 years ago committed by Facebook Github Bot 4
parent eb76a441f9
commit e71ae11cae

@ -181,3 +181,17 @@ let log_progress_file () =
let log_progress_procedure () = let log_progress_procedure () =
log_progress_simple "." log_progress_simple "."
let log_progress_timeout_event failure_kind =
if !Config.developer_mode then
begin
match failure_kind with
| FKtimeout ->
log_progress_simple "T"
| FKsymops_timeout _ ->
log_progress_simple "S"
| FKrecursion_timeout _ ->
log_progress_simple "R"
| FKcrash _ ->
log_progress_simple "C"
end

@ -135,3 +135,6 @@ val log_progress_file : unit -> unit
(** Progress bar: start of the analysis of a procedure. *) (** Progress bar: start of the analysis of a procedure. *)
val log_progress_procedure : unit -> unit val log_progress_procedure : unit -> unit
(** Progress bar: log a timeout event if in developer mode. *)
val log_progress_timeout_event : failure_kind -> unit

@ -119,6 +119,7 @@ let exe_timeout f x =
with with
| Analysis_failure_exe kind -> | Analysis_failure_exe kind ->
resume_previous_timeout (); resume_previous_timeout ();
L.log_progress_timeout_event kind;
Errdesc.warning_err (State.get_loc ()) "TIMEOUT: %a@." pp_failure_kind kind; Errdesc.warning_err (State.get_loc ()) "TIMEOUT: %a@." pp_failure_kind kind;
Some kind Some kind
| exe -> | exe ->

Loading…
Cancel
Save