Trace_tefTEF collector for Trace.
This emits chrome traces (https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/), which are very simple and a known quantity.
They can be opened in https://ui.perfetto.dev .
module Collector_tef : sig ... endmodule Exporter : sig ... endAn exporter, takes JSON objects and writes them somewhere
module Writer : sig ... endWrite JSON events to a buffer.
module Types : sig ... endOutput for tracing.
`Stdout will enable tracing and print events on stdout`Stderr will enable tracing and print events on stderr`File "foo" will enable tracing and print events into file named "foo"val collector : out:[< output ] -> unit -> Trace_core.collectorMake a collector that writes into the given output. See setup for more details.
val setup : ?debug:bool -> ?out:[ output | `Env ] -> unit -> unitsetup () installs the collector depending on out.
val with_setup :
?debug:bool ->
?out:[ output | `Env ] ->
unit ->
(unit -> 'a) ->
'awith_setup () f (optionally) sets a collector up, calls f(), and makes sure to shutdown before exiting. since 0.2 a () argument was added.