Summary: Currently alarms are reported to stdout while the debug trace is written to stderr. This makes synchronizing the two difficult. With this diff, the alarm reports can also be included in the debug trace, and analysis can be stopped when an alarm is encountered by tracing the `Stop` module, e.g.: ``` sledge -trace Report+Stop.on_invalid_access ``` Reviewed By: kren1 Differential Revision: D16072611 fbshipit-source-id: 32c3639a2master
parent
e27af1f184
commit
1908077aa9
@ -0,0 +1,11 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
|
||||||
|
(** Stop analysis when encountering issues *)
|
||||||
|
|
||||||
|
let on_unknown_call _ = [%Trace.kprintf (fun _ -> assert false) ""]
|
||||||
|
let on_invalid_access _ = [%Trace.kprintf (fun _ -> assert false) ""]
|
@ -0,0 +1,11 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
|
||||||
|
(** Stop analysis when encountering issues *)
|
||||||
|
|
||||||
|
val on_unknown_call : 'a -> unit
|
||||||
|
val on_invalid_access : 'a -> unit
|
Loading…
Reference in new issue