← Back to release summary

performance.measureUserAgentSpecificMemory()

Category
Performance
Type
New or changed feature
Status
Enabled by default (Chrome 89)
Intent stage
Prepare to ship

Summary

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.

Standards & signals

Docs: https://web.dev/monitor-total-page-memory-usage https://github.com/WICG/performance-measure-memory/blob/master/ORIGIN_TRIAL.md

Samples: https://wpt.fyi/results/measure-memory?label=master&label=experimental&aligned&q=measure-memory

Explainers: https://github.com/WICG/performance-measure-memory

View on chromestatus.com