performance.measureMemory()

The feature adds a performance.measureMemory() function that estimates the memory usage of the web page in case the page is currently isolated (e.g. on Desktop). After the full launch the API will be gated behind COOP/COEP thus the web site need to be crossOriginIsolated to use the API.

Motivation

Web developers need an API for measuring memory usage of their applications in production. The use cases include a) analysis of correlation between memory usage and user metrics, b) detection of memory regressions, c) evaluation of feature launches in A/B tests, d) memory optimization.

Documentation

Status in Chromium

Blink>PerformanceAPIs


Origin trial (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • No signal
  • Positive

Owners

Search tags

JavaScript memory, crossOriginIsolated,

Last updated on 2020-10-19