Module Brr.Performance
Performance 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 : Brr.Performance.t -> floattime_origin_ms p is the start time of the performance measurement.
val clear_marks : Brr.Performance.t -> Jstr.t option -> unitclear_marks p n clears the marks named n or all of them on None.
val clear_measures : Brr.Performance.t -> Jstr.t option -> unitclear_measures p n clears the measures named n or all of them on None.
val clear_resource_timings : Brr.Performance.t -> unitclear_measures p n clears the resource.
val get_entries :
?type':Brr.Performance.Entry.Type.t ->
?name:Jstr.t ->
Brr.Performance.t ->
Brr.Performance.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).
val mark : Brr.Performance.t -> Jstr.t -> unitmark p name creates an timestamped entry associated to name name.
val measure :
?start:Jstr.t ->
?stop:Jstr.t ->
Brr.Performance.t ->
Jstr.t ->
unitmeasure p n ~start ~stop creates an entry to measure time between two marks.
val now_ms : Brr.Performance.t -> floatnow_ms p is the number of millisecond elapsed since time_origin_ms.
val to_json : Brr.Performance.t -> Brr.Json.tto_json p is p converted to a JSON object.
val to_jv : Brr.Performance.t -> Jv.jvval of_jv : Jv.jv -> Brr.Performance.t