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.
val collector :
out:[ `File of string | `Stderr | `Stdout ] ->
unit ->
Trace_core.collectorMake a collector that writes into the given output. See setup for more details.
Output 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 setup : ?out:[ output | `Env ] -> unit -> unitsetup () installs the collector depending on out.
val with_setup : ?out:[ output | `Env ] -> unit -> (unit -> 'a) -> 'awith_setup () f (optionally) sets a collector up, calls f(), and makes sure to shutdown before exiting.