observe method

void observe([
  1. PerformanceObserverInit options
])

The observe() method of the PerformanceObserver interface is used to specify the set of performance entry types to observe.

See PerformanceEntry.entryType for a list of entry types and PerformanceObserver.supportedEntryTypes_static for a list of entry types the user agent supports.

When a matching performance entry is recorded, the performance observer's callback function—set when creating the PerformanceObserver—is invoked.

Implementation

external void observe([PerformanceObserverInit options]);