Module Performance.Entry
Performance entry objects.
module Type : sig ... end
Entry type enum.
type t
The type for
PerformanceEntry
objects.
val start_time : t -> float
start_time e
is the start time ofe
.
val to_json : t -> Json.t
to_json e
is a JSON representation ofe
.
Entry types
Always check the type'
before coercing an entry type to its subtype. Objects of type PerformanceMark
, PerformanceMeasure
, PerformanceFrameTiming
, and PerformancePaintTiming
do not provide additional properties, so no modules are provided for them.
module Resource_timing : sig ... end
Resource timing entries.
Navigation timing entries.
val as_resource_timing : t -> Resource_timing.t
as_resource_timing e
ise
as a ressource timing entry.
as_navigation_timing e
ise
as a navigation timing entry.