PerformanceFrameTiming class Null safety

Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. is an abstract interface that provides frame timing data about the browser's event loop. A frame represents the amount of work a browser does in one event loop such as processing DOM events, resizing, scrolling, rendering, CSS animations, etc.. A frame rate of 60fps (frames per second) for a 60Hz refresh rate is the target for a good responsive user experience. This means the browser should process a frame in about 16.7ms.

An application can register a PerformanceObserver for "frame" performance entry types and the observer can retrieve data about the duration of each frame event. This information can be used to help identify areas that take too long to provide a good user experience.

Mixed in types
Annotations

Constructors

PerformanceFrameTiming()
factory

Properties

duration double
A DOMHighResTimeStamp representing the time value of the duration of the performance event.
read-only, inherited
entryType String
A DOMString representing the type of performance metric such as, for example, "mark". See property page for valid values.
read-only, inherited
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, inherited
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, inherited

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(); [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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