package eio-trace

  1. Overview
  2. Docs

Write files in Fuchsia trace format: https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format

type t
type arg = [
  1. | `Unit
  2. | `Int64 of int64
  3. | `Pointer of int64
  4. | `Koid of int64
  5. | `String of string
]
type args = (string * arg) list
type thread = {
  1. pid : int64;
  2. tid : int64;
}
val of_writer : Eio.Buf_write.t -> t
val instant_event : ?args:args -> t -> name:string -> thread:thread -> category:string -> ts:int64 -> unit
val duration_begin : ?args:args -> t -> name:string -> thread:thread -> category:string -> ts:int64 -> unit
val duration_end : ?args:args -> t -> name:string -> thread:thread -> category:string -> ts:int64 -> unit
val user_object : ?args:args -> t -> name:string -> thread:thread -> int64 -> unit
val kernel_object : ?args:args -> t -> name:string -> [ `Thread ] -> int64 -> unit
val thread_wakeup : ?args:args -> t -> cpu:int -> ts:int64 -> int64 -> unit
OCaml

Innovation. Community. Security.