package chrome-trace

  1. Overview
  2. Docs
type t
module Timestamp : sig ... end
type common_fields
val common_fields : ?tts:Timestamp.t -> ?cname:string -> ?cat:string list -> ?pid:int -> ?tid:int -> ?stackframe:[ `Id of Id.t | `Raw of Stack_frame.Raw.t ] -> ts:Timestamp.t -> name:string -> unit -> common_fields
type args = (string * Json.t) list
val counter : ?id:Id.t -> common_fields -> args -> t

Create a counter event

type async =
  1. | Start
  2. | Instant
  3. | End
val async : ?scope:string -> ?args:args -> Id.t -> async -> common_fields -> t
val complete : ?tdur:Timestamp.t -> ?args:args -> dur:Timestamp.t -> common_fields -> t
val to_json : t -> Json.t
type scope =
  1. | Global
  2. | Process
  3. | Thread

The scope of an instant event. The scopes below come from the standard reference for this format

val instant : ?args:args -> ?scope:scope -> common_fields -> t

Create an instant event.

OCaml

Innovation. Community. Security.