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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
PerformanceObserverEntryList | Chrome Full support 52 | Edge Full support ≤79 | Firefox Full support 57 | IE No support No | Opera Full support 39 | Safari Full support 11 | WebView Android No support No | Chrome Android Full support 52 | Firefox Android Full support 57 | Opera Android Full support 41 | Safari iOS Full support 11 | Samsung Internet Android Full support 6.0 |
getEntries | Chrome Full support 52 | Edge Full support ≤79 | Firefox Full support 57 | IE No support No | Opera Full support 39 | Safari No support No | WebView Android No support No | Chrome Android Full support 52 | Firefox Android Full support 57 | Opera Android Full support 41 | Safari iOS No support No | Samsung Internet Android Full support 6.0 |
getEntriesByName | Chrome Full support 52 | Edge Full support ≤79 | Firefox Full support 57 | IE No support No | Opera Full support 39 | Safari No support No | WebView Android No support No | Chrome Android Full support 52 | Firefox Android Full support 57 | Opera Android Full support 41 | Safari iOS No support No | Samsung Internet Android Full support 6.0 |
getEntriesByType | Chrome Full support 52 | Edge Full support ≤79 | Firefox Full support 57 | IE No support No | Opera Full support 39 | Safari No support No | WebView Android No support No | Chrome Android Full support 52 | Firefox Android Full support 57 | Opera Android Full support 41 | Safari iOS No support No | Samsung Internet Android Full support 6.0 |
Legend
- Full support
- Full support
- No support
- No support