Skip to main content
This is unreleased documentation for React Native Next version.
For up-to-date documentation, see the latest version (0.83).
Version: Next

PerformanceObserver

The global PerformanceObserver class, as defined in Web specifications.

Example​

ts
const observer =newPerformanceObserver(
(list, observer, options)=>{
for(const entry of list.getEntries()){
console.log(
'Received entry with type',
entry.entryType,
'and name',
entry.name,
'that started at',
entry.startTime,
'and took',
entry.duration,
'ms',
);
}
},
);

observer.observe({entryTypes:['mark','measure']});

Reference

Constructor​

PerformanceObserver()​

See documentation in MDN.

Static properties​

supportedEntryTypes​

See documentation in MDN.

Returns ['mark', 'measure', 'event', 'longtask', 'resource'].

Instance methods​

observe()​

See documentation in MDN.

disconnect()​

See documentation in MDN.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /