let profiling_printings = ref (fun () -> true)
let set_profiling_printings f = profiling_printings := f
type profiler = { profile : 'a 'b. ('a -> 'b) -> 'a -> 'b }
let profile ?(enable = true) =
let profiling_printings = ref (fun () -> true)
let set_profiling_printings f = profiling_printings := f
type profiler = { profile : 'a 'b. ('a -> 'b) -> 'a -> 'b }
let profile ?(enable = true) =