package catapult
Module Catapult.TracingSource
Profiling probes.
This is the main API. The user can insert probes into their code, and at runtime, these probes will use the Backend (if present) to emit tracing events to be replayed later. If no backend is present, the probes will do nothing.
Emitter function, without timestamp. See emit_fun for more details.
Function that can take a stack trace
An emitter function. The positional string argument is the name.
Represents the beginning of a span, to emit compact spans
Is tracing enabled?
Emit a generic event.
Emit a "X" event with duration computed from the given span start
Emit a "B" event
Emit a "E" event
Emit a "X" event
Source
val a_with1 :
(cat:string list -> id:string -> ('a -> 'b) -> 'a -> 'b) emit_fun_base
with_ts_usDepending on the tracing backend, this needs to be called regularly to ensure background work is done.