PerformanceObserver
interface
interface PerformanceObserverObserves performance measurement events and is notified of new
PerformanceEntry objects as they are recorded in the performance
timeline.
variable
var PerformanceObserver: { … }Observes performance measurement events and is notified of new
PerformanceEntry objects as they are recorded in the performance
timeline.
Constructors
constructor
new PerformanceObserver(callback: PerformanceObserverCallback): PerformanceObserverProperties
prototype
readonly prototype: PerformanceObserversupportedEntryTypes
readonly supportedEntryTypes: readonly string[]Methods
disconnect
disconnect(): voidStops the observer from receiving any further performance entries.
observe
observe(options?: { entryTypes?: string[]; type?: string; buffered?: boolean }): voidSpecifies the set of performance entry types to observe.
takeRecords
takeRecords(): PerformanceEntry[]Returns the current list of buffered performance entries, emptying it.