ul...@google.com, va...@chromium.org
https://github.com/WICG/performance-measure-memory
https://github.com/WICG/performance-measure-memory
https://web.dev/monitor-total-page-memory-usage
https://github.com/WICG/performance-measure-memory/blob/master/ORIGIN_TRIAL.md
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 needs to be crossOriginIsolated to use the API.
JavaScript memory, crossOriginIsolated
https://github.com/w3ctag/design-reviews/issues/386
Issues addressed
OT feedback was addressed during OT and OT was extended to verify the changes. Feedback report from Google Workspace is shared publicly
Facebook tested the API as well during the OT and feedback is posted on github
https://github.com/WICG/performance-measure-memory/issues/24
The actual memory usage of a web page is not comparable across browsers.
The granularity of memory usage breakdown will differ across browsers.
Gecko: Under consideration
https://github.com/mozilla/standards-positions/issues/281
WebKit: No signal
https://lists.webkit.org/pipermail/webkit-dev/2020-April/031160.html
Web developers: Positive (https://docs.google.com/document/d/1u21oa3-R1FhHgrPsh8-mpb8dIFVj60wcFiM5FFrfIQA/edit#heading=h.6si74uwp7sq8) Developers from Gmail, Google Docs/Slides/Sheet, Facebook, YouTube contributed use cases for a memory measurement API. The proposal was presented at WebPerf WG F2F June 2019 meeting with positive feedback from developers.
None
None
The API relies on crossOriginIsolated based on COOP and COEP for security.
See https://github.com/ulan/performance-measure-memory#security-considerations
Yes
https://bugs.chromium.org/p/chromium/issues/detail?id=1049093
https://bugs.chromium.org/p/chromium/issues/detail?id=1048745
https://wpt.fyi/results/measure-memory?label=master&label=experimental&aligned&q=measure-memory
https://www.chromestatus.com/feature/5685965186138112
Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/zxCKzulX424/m/bb1QR23rAQAJ
--
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/CAH0ixBO67k7P-JSkAUzT7fkre9q1RsaD3Ljb4y0o93Y9gU1Wmw%40mail.gmail.com.
As part of the mozilla/standards-positions issue, https://github.com/WICG/performance-measure-memory/issues/5 was filed but remains open. Is that something that's important to resolve before shipping?
Thanks for the feedback, Philip!As part of the mozilla/standards-positions issue, https://github.com/WICG/performance-measure-memory/issues/5 was filed but remains open. Is that something that's important to resolve before shipping?There is a PR in review for that issue. I'll ping this thread once it is merged.
Thanks for clarifying what tentative in WPT means. I thought that we can promote tests from tentative only after shipping. I uploaded a renaming CL.
Most of the failing tests on wpt.fyi will be fixed in the next Chrome Dev release: there was a CL that updated the tests and the implementation to the latest spec. Currently the updated tests are being tested with the old implementation. (A couple of tests are timing out because the API is not guaranteed to return the result immediately. In Chrome we work around that by passing a flag that forces eager measurement. I guess we need to remove these tests as slow to get wpt.fyi green.)
Just spotted that the README could also do with an update.
--
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/CABNJt2KQAqEUw1Rai4OEUja0-gSN%3DAHTH8qn2VgOz_E_s-0rTw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEgk1%2BS2ZZNM3J1V1X4K%2B%3DVjfxRdk%2Btowo4jX78TycsGMg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABNJt2LzX7%3DVpbcSD8WTxtqTUmuGi1SPC%2B4q9_N6CGW3393bGw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CABNJt2Kmndkn%3DzhULkG%3DgHjZd%2BTowGCUw%3DJ-gFzRgNRAc4ci2w%40mail.gmail.com.
> I see. Good point. And the other browser vendors were I presume already aware? Were there any concerns specific to workers at the time?
Yes. We discussed the scope of shared/service workers here: https://github.com/WICG/performance-measure-memory/issues/4
> Also, it sounds like the only reason we didn't ship for workers at the time was that we didn't have an implementation yet, is that correct?
That's right.