Module Performance.EntrySource

Performance entry objects.

Sourcemodule Type : sig ... end

Entry type enum.

Sourcetype t

The type for PerformanceEntry objects.

Sourceval name : t -> Jstr.t

name e is the name of e.

Sourceval type' : t -> Type.t

type' e is the type of e.

Sourceval start_time : t -> float

start_time e is the start time of e.

Sourceval end_time : t -> float

end_time e is the end time of e.

Sourceval duration : t -> float

duration e is the duration of duration of e.

Sourceval to_json : t -> Json.t

to_json e is a JSON representation of e.

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.

Sourcetype entry = t

See t.

Sourcemodule Resource_timing : sig ... end

Resource timing entries.

Sourcemodule Navigation_timing : sig ... end

Navigation timing entries.

Sourceval as_resource_timing : t -> Resource_timing.t

as_resource_timing e is e as a ressource timing entry.

Sourceval as_navigation_timing : t -> Navigation_timing.t

as_navigation_timing e is e as a navigation timing entry.