getEntriesByName

fun getEntriesByName(name: String, type: String = definedExternally): PerformanceEntryList(source)

The getEntriesByName() method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given name and entryType. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback).

MDN Reference