getEntriesByName

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

The getEntriesByName() method returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.

MDN Reference