Trace_fuchsiaFuchsia trace collector.
This provides a collector for traces that emits data into a file using the compact binary Fuchsia trace format. This reduces the tracing overhead compared to trace-tef, at the expense of simplicity.
module Buf : sig ... endmodule Buf_chain : sig ... endA set of buffers in use, and a set of ready buffers
module Buf_pool : sig ... endmodule Exporter : sig ... endAn exporter, takes buffers with fuchsia events, and writes them somewhere
module Subscriber : sig ... endmodule Writer : sig ... endWrite fuchsia events into buffers.
val subscriber : out:[< output ] -> unit -> Trace_subscriber.tval collector : out:[< output ] -> unit -> Trace_core.collectorMake a collector that writes into the given output. See setup for more details.
val setup : ?out:[ output | `Env ] -> unit -> unitsetup () installs the collector depending on out.
val with_setup : ?out:[< output | `Env Env ] -> unit -> (unit -> 'a) -> 'awith_setup () f (optionally) sets a collector up, calls f(), and makes sure to shutdown before exiting.