[sledge] Add Trace.all

Summary:
This makes it convenient to call

`Trace.init ~margin:70 ~config:all ()`

in test modules.

Reviewed By: mbouaziz

Differential Revision: D14075515

fbshipit-source-id: 3d3940eb1
master
Josh Berdine 6 years ago committed by Facebook Github Bot
parent 730cbac6c1
commit 83607ace5e

@ -20,6 +20,7 @@ type trace_mods_funs = trace_mod_funs Map.M(String).t
type config = {trace_all: bool; trace_mods_funs: trace_mods_funs}
let none = {trace_all= false; trace_mods_funs= Map.empty (module String)}
let all = {none with trace_all= true}
let config : config ref = ref none
let init ?(margin = 300) ~config:c () =

@ -22,6 +22,7 @@ type config =
(** Specify tracing of individual toplevel modules *) }
val none : config
val all : config
val init : ?margin:int -> config:config -> unit -> unit
(** Initialize the configuration of debug tracing. *)

Loading…
Cancel
Save