observe

fun observe(options: PerformanceObserverInit = definedExternally)(source)

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

MDN Reference