magic-trace

Collects and displays high-resolution traces of what a process is doing
Library magic-trace.magic_trace_lib
type t
val attach_and_record : Record_opts.t -> debug_print_perf_commands:bool -> subcommand:Magic_trace_core.Subcommand.t -> when_to_snapshot:Magic_trace_core.When_to_snapshot.t -> trace_mode:Magic_trace_core.Trace_mode.t -> timer_resolution:Magic_trace_core.Timer_resolution.t -> record_dir:string -> Core.Pid.t -> t Async.Deferred.Or_error.t
val maybe_take_snapshot : t -> source:[ `ctrl_c | `function_call ] -> unit
val finish_recording : t -> unit Async.Deferred.Or_error.t