getEntriesByName method
Returns an array of selected PerformanceEntry objects in chronological order, based on startTime.
![]() |
Syntax
var retVal = performance.getEntriesByName(name, entryType);Parameters
- name [in]
-
Type: DOMString
The name associated with the recorded events to be returned.
- entryType [in, optional]
-
Type: DOMString
The type of recorded events to be returned.
Value Meaning - mark
Return PerformanceMark events
- measure
Return PerformanceMeasure events.
- navigation
Return performanceNavigation timing events.
- resource
Return PerformanceResourceTiming events.
Return value
Type: any
A PerformanceEntryList object, which is an array containing PerformanceEntry objects matching the values specified in the input parameters.
Standards information
See also
Show:
