Brr.PerformancePerformance objects.
See the Peformance API and Peformance Timeline API.
module Entry : sig ... endPerformance entry objects.
The type for performance Performance objects. See G.performance for the global performance object.
val time_origin_ms : t -> floattime_origin_ms p is the start time of the performance measurement.
clear_marks p n clears the marks named n or all of them on None.
clear_measures p n clears the measures named n or all of them on None.
val get_entries : ?type':Entry.Type.t -> ?name:Jstr.t -> t -> Entry.t listget_entries ~type' ~name' p are p's entries in chronological order filtered by given type' and/or name' (both can be omited, possibly separately).
measure p n ~start ~stop creates an entry to measure time between two marks.
val now_ms : t -> floatnow_ms p is the number of millisecond elapsed since time_origin_ms.