Module Brr.Performance
Performance
objects.
See the Peformance API and Peformance Timeline API.
module Entry : sig ... end
Performance entry objects.
type t
The type for performance
Performance
objects. SeeG.performance
for the global performance object.
val time_origin_ms : t -> float
time_origin_ms p
is the start time of the performance measurement.
val clear_marks : t -> Jstr.t option -> unit
clear_marks p n
clears the marks namedn
or all of them onNone
.
val clear_measures : t -> Jstr.t option -> unit
clear_measures p n
clears the measures namedn
or all of them onNone
.
val get_entries : ?type':Entry.Type.t -> ?name:Jstr.t -> t -> Entry.t list
get_entries ~type' ~name' p
arep
's entries in chronological order filtered by giventype'
and/orname'
(both can be omited, possibly separately).
val measure : ?start:Jstr.t -> ?stop:Jstr.t -> t -> Jstr.t -> unit
measure p n ~start ~stop
creates an entry to measure time between two marks.
val now_ms : t -> float
now_ms p
is the number of millisecond elapsed sincetime_origin_ms
.