bit of doc

This commit is contained in:
Simon Cruanes 2026-01-20 20:31:27 -05:00
parent 87d5a0228a
commit 6f3b487f35
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 21 additions and 1 deletions

View file

@ -1,4 +1,8 @@
(** Trace. *) (** Main tracing interface.
This interface is intended to be lightweight and usable in both libraries
and applications. It has very low overhead if no {!Collector.t} is
installed. *)
include module type of Types include module type of Types
module Collector = Collector module Collector = Collector

View file

@ -1,3 +1,5 @@
(** Helper to track which spans never get closed. *)
open Trace_core open Trace_core
type unclosed_spans = { type unclosed_spans = {

View file

@ -1,3 +1,11 @@
(** TEF 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 = Collector_tef module Collector_tef = Collector_tef
module Exporter = Exporter module Exporter = Exporter
module Writer = Writer module Writer = Writer

View file

@ -1 +1,7 @@
(** Shim that just forwards to {!Trace_core}.
The reason is, [Trace] is already defined in the compiler libs and can clash
with this module inside a toplevel. So it's safer to only depend on
[Trace_core] in libraries that might end up used in a toplevel. *)
include Trace_core include Trace_core