The feature adds a performance.measureUserAgentSpecificMemory() function that estimates the memory usage of the web page. The website needs to be cross-origin isolated 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.

Demo

Documentation

Specification

No public standards discussion

Status in Chromium

Blink>PerformanceAPIs


Enabled by default (tracking bug) in:

  • Chrome for desktop release 89

Consensus & Standardization

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

Owners

Search tags

JavaScript memory, crossOriginIsolated, performance.measureMemory(),

Last updated on 2021-02-25