Contact emails
Explainer
https://github.com/ulan/javascript-agent-memory/blob/master/explainer.md
Design docs/spec
N/A
TAG review
https://github.com/w3ctag/design-reviews/issues/386
Summary
The feature adds a performance.measureMemory() function that estimates the total size of JavaScript objects that the calling context can access.
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.
Currently web developers resort to the non-standard performance.memory API that is used in 20% of page loads in Chrome.
Risks
Interoperability and Compatibility
The API was designed to be secure and to avoid information leak from foreign origins. As a trade-off this complicates the implementation. There is risk that the API may be difficult to implement in other browsers.
Note however that this API is the simplest memory measurement API to implement given the security constraints. If it is impossible, then memory measurement in general is not possible for web platform.
Firefox: No public signals
Edge: No public signals
Safari: No public signals
Web developers: Positive
Developers from Gmail, Google Docs/Slides/Sheet, Facebook, YouTube contributed use cases for memory measurement API.
The proposal was presented at WebPerf WG F2F June 2019 meeting and received positive feedback from developers.
Ergonomics
None
Activation
None
Security
See https://github.com/ulan/javascript-agent-memory/blob/master/explainer.md#security-considerations
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux,
Chrome OS, Android, and Android WebView)?
Yes
Is this feature fully tested by web-platform-tests?
No
Link to entry on the Chrome Platform Status
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABNJt2%2BXZFRX7tbBVvKTW7TegysYpjVNQdja7jYs3cTYuG%2BabA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABNJt2%2Byg-t9BvT-%2BYJ3q-VRawczJrKFSm8NyieNmKx7XEiChA%40mail.gmail.com.