PerformanceEntry class Null safety

The object encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).

instances will always be one of the following subtypes: PerformanceMark PerformanceMeasure PerformanceFrameTiming PerformanceNavigationTiming PerformanceResourceTiming PerformancePaintTiming

Note: This feature is available in Web Workers

Implementers
Annotations

Constructors

PerformanceEntry()
factory

Properties

duration double
A DOMHighResTimeStamp representing the time value of the duration of the performance event.
read-only
entryType String
A DOMString representing the type of performance metric such as, for example, "mark". See property page for valid values.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
A value that further specifies the value returned by the PerformanceEntry.entryType property. The value of both depends on the subtype. See property page for valid values.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
startTime double
A DOMHighResTimeStamp representing the starting time for the performance metric.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJSON() → dynamic
Returns a JSON representation of the PerformanceEntry object. json = perfEntry.toJSON(); [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited