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
.
PerformanceObserverEntryList.getEntries()
PerformanceEntry
objects based on the given filter.PerformanceObserverEntryList.getEntriesByType()
PerformanceEntry
objects of the given entry type.PerformanceObserverEntryList.getEntriesByName()
PerformanceEntry
objects based on the given name and entry type.// Create observer for all performance event types // list is of type PerformanceObserveEntryList var observe_all = new PerformanceObserver(function(list, obs) { var perfEntries; // Print all entries perfEntries = list.getEntries(); for (var i=0; i < perfEntries.length; i++) { print_perf_entry(perfEntries[i]); // do something with it } }
Specification | Status | Comment |
---|---|---|
Performance Timeline Time Level 2 The definition of 'PerformanceObserverEntryList' in that specification. | Editor's Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 52.0 | 57 (57) | No support | 39 | No support |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | No support | No support | 57.0 (57) | No support | 39 | No support | 52.0 |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList