PerformanceObserverEntryList

The PerformanceObserverEntryList interface is a list of peformance events that were explicitly observed via the observe() method.

Note: this interface is exposed to Window and Worker.

Methods

PerformanceObserverEntryList.getEntries()
Returns a list of explicitly observed PerformanceEntry objects based on the given filter.
PerformanceObserverEntryList.getEntriesByType()
Returns a list of explicitly observed PerformanceEntry objects of the given entry type.
PerformanceObserverEntryList.getEntriesByName()
Returns a list of explicitly observed PerformanceEntry objects based on the given name and entry type.

Example

// Create observer for all performance event types 
// list is of type PerformanceObserveEntryList
var observe_all = new PerformanceObserver(function(list, obs) {  
   var perfEntries = list.getEntries(); 
   for (var i = 0; i < perfEntries.length; i++) { 
      print_perf_entry(perfEntries[i]); 
      // do something with it 
   }
}

Specifications

Specification Status Comment
Performance Timeline Level 2
The definition of 'PerformanceObserverEntryList' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
PerformanceObserverEntryListChrome Full support 52Edge ? Firefox Full support 57IE No support NoOpera Full support 39Safari Full support 11WebView Android No support NoChrome Android Full support 52Firefox Android Full support 57Opera Android Full support 41Safari iOS Full support 11Samsung Internet Android Full support Yes
getEntriesChrome Full support 52Edge ? Firefox Full support 57IE No support NoOpera Full support 39Safari No support NoWebView Android No support NoChrome Android Full support 52Firefox Android Full support 57Opera Android Full support 41Safari iOS No support NoSamsung Internet Android Full support Yes
getEntriesByTypeChrome Full support 52Edge ? Firefox Full support 57IE No support NoOpera Full support 39Safari No support NoWebView Android No support NoChrome Android Full support 52Firefox Android Full support 57Opera Android Full support 41Safari iOS No support NoSamsung Internet Android Full support Yes
getEntriesByNameChrome Full support 52Edge ? Firefox Full support 57IE No support NoOpera Full support 39Safari No support NoWebView Android No support NoChrome Android Full support 52Firefox Android Full support 57Opera Android Full support 41Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Last updated by: cvazac,