package eio-trace

  1. Overview
  2. Docs

Module Eio_trace.TraceSource

Sourcemodule Read = Fxt.Read
Sourcemodule Rings : sig ... end
Sourcemodule Ids : sig ... end
Sourceval i64 : int64 -> int
Sourcetype timestamp = int64
Sourcetype activation = [
  1. | `Pause
  2. | `Fiber of int
  3. | `Enter_span of string
  4. | `Exit_span
  5. | `Suspend_fiber of string
]
Sourcetype event =
  1. | Log of string
  2. | Error of string
  3. | Create_cc of string * item
  4. | Add_fiber of {
    1. parent : int;
    2. child : item;
    }
Sourceand item = {
  1. id : int;
  2. mutable name : string option;
  3. mutable parent : item option;
  4. mutable events : (timestamp * event) list;
  5. mutable inner_cc : int;
  6. mutable end_time : timestamp option;
  7. mutable activations : (timestamp * activation) list;
}
Sourcemodule Ring : sig ... end
Sourcetype t = {
  1. mutable start_time : timestamp;
  2. mutable rings : Ring.t Rings.t;
  3. mutable items : item Ids.t;
}
Sourceval get_ring : t -> Rings.key -> Ring.t
Sourceval current_fiber : t -> Rings.key -> item option
Sourceval get : t -> Ids.key -> item
Sourceval pp_item : Format.formatter -> item -> unit
Sourceval add_activation : item -> timestamp -> activation -> unit
Sourceval set_fiber : t -> Rings.key -> timestamp -> Ids.key -> unit
Sourceval id_of_pointer : [> `Pointer of int64 ] -> int
Sourceval ring_of_thread : t -> Read.thread -> Ring.t option
Sourceval fiber_of_thread : t -> Read.thread -> item option
Sourceval as_string : [> `String of 'a ] -> 'a
Sourceval as_int64 : [> `Int64 of 'a ] -> 'a
Sourceval process_event : t -> Read.Event.t -> unit
Sourceval process : t -> Eio.Buf_read.t -> unit
Sourceval create : string -> t
OCaml

Innovation. Community. Security.