package chrome-trace

  1. Overview
  2. Docs

Module Chrome_trace.EventSource

Sourcetype t
Sourcemodule Timestamp : sig ... end
Sourcetype common_fields
Sourceval 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
Sourcetype args = (string * Json.t) list
Sourceval counter : ?id:Id.t -> common_fields -> args -> t

Create a counter event

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

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

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

Create an instant event.

OCaml

Innovation. Community. Security.