package eio-trace

  1. Overview
  2. Docs
Trace visualisation for Eio programs

Install

Dune Dependency

Authors

Maintainers

Sources

eio-trace-0.4.tbz
sha256=e5f590734c92d52f607a7af4ad9d54be9af79f3c38040ca92eff47c0d24e3eaf
sha512=e50e7a2bae8472e80d881f837e32d4da5d0d2872e1fb8b80052d65012e75a4db0a9ca2576246e80d8e450965a13a72396c8da6346b6ea4bfaedf78c7293d53bc

doc/eio-trace/Eio_trace/Trace/index.html

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.