Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/runtime_events/lwt_runtime_events.mli
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
lwt produces) and the function to emit them (so that lwt can emit them). This
library is not intended for emitting events by hand. *)

(** Counter event indicatiing the number of paused promise, i.e., the number of
(** Counter event indicating the number of paused promises, i.e., the number of
calls to [Lwt.pause] which have not yet been resolved. *)
type Runtime_events.User.tag += Paused_count
val paused_count : int Runtime_events.User.t
val emit_paused_count : int -> unit

(** Span event indicatiing that [Lwt_main.run] has been called and hasn't
(** Span event indicating that [Lwt_main.run] has been called and hasn't
returned yet, i.e., when the Lwt scheduler is running. *)
type Runtime_events.User.tag += Scheduler_call
val sch_call : Runtime_events.Type.span Runtime_events.User.t
val emit_sch_call_begin : unit -> unit
val emit_sch_call_end : unit -> unit

(** Punctual event indicatiing that the scheduler is performing one loop. *)
(** Punctual event indicating that the scheduler is performing one loop. *)
type Runtime_events.User.tag += Scheduler_lap
val sch_lap : unit Runtime_events.User.t
val emit_sch_lap : unit -> unit

(** Counter event indicatiing the number of unix I/O jobs, i.e., the number of
(** Counter event indicating the number of unix I/O jobs, i.e., the number of
calls to [Lwt_unix.*] which have not yet been resolved. *)
type Runtime_events.User.tag += Unix_job_count
val unix_job_count : int Runtime_events.User.t
Expand All @@ -31,7 +31,7 @@ module Trace : sig
type t = { kind: Runtime_events.Type.span; context: string option; filename: string; line: int; }
val t : t Runtime_events.Type.t

(** Span event indicatiing that a promise is taking time to resolve. The
(** Span event indicating that a promise is taking time to resolve. The
event indicates the location of the bind for the promise. These events are
automatically emitted by code produced by the lwt_ppx syntax extension. *)
type Runtime_events.User.tag += T
Expand Down
Loading