PerformanceEntry extension type
The PerformanceEntry
object encapsulates a single performance metric
that is part of the browser's performance timeline.
The Performance API offers built-in metrics which are specialized subclasses
of PerformanceEntry
. This includes entries for resource loading, event
timing, (FID), and more.
A performance entry can also be created by calling the Performance.mark or Performance.measure methods at an explicit point in an application. This allows you to add your own metrics to the performance timeline.
The PerformanceEntry
instances will always be one of the following
subclasses:
LargestContentfulPaint
LayoutShift
PerformanceEventTiming
- PerformanceLongTaskTiming
- PerformanceMark
- PerformanceMeasure
- PerformanceNavigationTiming
- PerformancePaintTiming
- PerformanceResourceTiming
- PerformanceServerTiming
- TaskAttributionTiming
- VisibilityStateEntry
- on
- Implemented types
- Implementers
Properties
- duration → DOMHighResTimeStamp
-
no setter
- entryType → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
no setter
- name → String
-
no setter
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DOMHighResTimeStamp
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → JSObject -
The
toJSON()
method is a ; it returns a JSON representation of the PerformanceEntry object. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited