Module NewProfile
module MiniJson : sig ... endval profile : string -> ?args:(unit -> (string * MiniJson.t) list) -> (unit -> 'a) -> unit -> 'aProfile the given function.
argsis called only if profiling is active, it is used to produce additional annotations.
val init : settings -> unitProfiling must not be active. Activates profiling with a fresh state.
val pause : unit -> accu optionReturns
Noneif profiling is inactive. Deactivates profiling if it is active, returning the current state.
val resume : accu -> unitProfiling must not be active. Activates profiling with the given state.