package chrome-trace

  1. Overview
  2. Docs
type t
module Timestamp : sig ... end
module Id : sig ... end
type common_fields
val common_fields : ?tts:Timestamp.t -> ?cname:string -> ?cat:string list -> ?pid:int -> ?tid:int -> ?stackframe:[ `Id of Stack_frame.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