Async.TraceTracing asynchronous function activity.
type domain_id = {main : Stdlib.Domain.id;index : int;Scheduler specific domain index. 0 must be the domain associated with main.
}The type for affect domain identifiers.
val out_of_scheduler_domain_id : unit -> domain_idout_of_scheduler_domain_id () is an identifier for when you don't have one.
val pp_domain_id : Stdlib.Format.formatter -> domain_id -> unitpp_domain_id formats domain ids.
type payload = | Action_block of Call.id * Action.Private.Action.Meta.t| Async_fun_call of {}| Async_fun_continue of Call.idReported when a function continues its execution after it was called, yielded or blocked.
*)| Async_fun_yield of Call.id| Async_fun_return of Call.idReported when an asynchronous function returns.
*)| Async_fun_trace of Call.id * string| Domain_startReported when domain starts its local scheduler.
*)| Domain_sleepReported when a domain starts sleeping.
*)| Domain_unblocker of {}Reported when a domain executes an unblocker.
*)| Domain_resumeReported when a domain returns from sleep or the unblocker
*)| Domain_panic of stringReported when a domain has an internal scheduler error.
*)| Domain_stopReported when a domain stops its local scheduler.
*)The type for trace payloads.
val is_domain : t -> boolis_domain t is true iff the trace t only pertains to the life cycle of domains.
val is_fun : t -> boolis_fun t is not (is_domain t) and true iff the trace t only pertains to asynchronous function activity or actions.
val is_user : t -> boolis_user t is true iff t is Async_fun_trace.
type reporter = t -> unitThe type for reporters.
val default_reporter : reporterdefault_reporter is the default reporter (Stdlib.ignore).
val format_reporter : (unit -> Stdlib.Format.formatter) -> reporterformat_reporter ppf is a reporter using a synchronization safe formater ppf (see Format.get_std_formatter) and pp to report.
val stderr_reporter : reporterstderr_reporter is format_reporter (Format.get_err_formatter).
val reporter : unit -> reporterreporter is the current reporter.
val set_reporter : reporter -> unitset_reporter reporter sets the current reporter to reporter
exchange_reporter r sets the current reporter r and returns the previous reporter.
val with_reporter : reporter -> (unit -> 'a) -> 'awith_reporter r f executes f () with current reporter r and restores the previous reporter after f returns or raises.
keep sat reporter reports with reporter but only those sat satisfying trace are given to it.
module Delayed : sig ... endDelayed reporters.
pp_call formats domain id and call identifier pairs.
val pp : Stdlib.Format.formatter -> t -> unitpp formats a trace.