Intent to Extend Origin Trial: performance.measureMemory

64 views
Skip to first unread message

Ulan Degenbaev

unread,
Sep 23, 2020, 7:14:13 AM9/23/20
to blink-dev

Contact emails

ul...@google.com

 

Spec

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

 

Summary

The performance.measureMemory API allows web pages to measure their memory usage.

 

Link to “Intent to Prototype” blink-dev discussion

https://groups.google.com/a/chromium.org/d/msg/blink-dev/cdUOyBAtWzo/MRmGAURjBQAJ

 

Goals for experimentation

We’re looking for feedback on API usefulness and performance.

 

To evaluate usefulness we will rely on the feedback from developers comparing the new API with the existing non-standard performance.memory API. We are specifically interested in accuracy and variability of the measurement results returned by the API.

 

To evaluate performance we will use V8 GC latency metrics.

 

The Origin Trial will be limited to JavaScript memory on site-isolated pages. Shipping of the API will be gated by COOP+COEP. See the launch bug: https://crbug.com/1048745 for the security discussion.

 

Experimental timeline

The extension will be to extend the experiment for one more milestone so that it ends in M87 instead of M86.

 

Any risks when the experiment finishes?

No.

 

Reason this experiment is being extended

Previous Intent to Experiment: https://groups.google.com/a/chromium.org/d/msg/blink-dev/zxCKzulX424/Ac3zzMqqAQAJ

Previous Intent to Extend Origin Trial:

https://groups.google.com/a/chromium.org/d/msg/blink-dev/LuoryMqT7wQ/DEiG_IpAAgAJ

 

Reasons:

- Due to a bug in the implementation, the origin trial was disabled for M84 and most of M85. We are just starting to get data from the experiment.

- M87 extends to the scope of the API to include worker memory. We would like to test and get data for that.

 

Ongoing technical constraints

None.

 

Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?

The experiment will be limited only to platforms that have Site Isolation because that is necessary for security.

 

Link to entry on the feature dashboard

https://www.chromestatus.com/feature/5685965186138112


Yoav Weiss

unread,
Sep 23, 2020, 7:27:10 AM9/23/20
to Ulan Degenbaev, blink-dev
LGTM to experiment in M87.
Normally, I'd be cautious of letting an OT run for 5 straight milestones, but the fact it was off for over a milestone in between significantly reduces the risk there.

--
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/CABNJt2L6jq34DY%2BbwGhCOziDv3dU16sOORBpbWt%2BB3f_qF7OEA%40mail.gmail.com.

Mike West

unread,
Sep 23, 2020, 9:17:53 AM9/23/20
to blink-dev, yo...@yoav.ws, blink-dev, Ulan Degenbaev, Domenic Denicola
Now that the `[CrossOriginIsolated]` extended attribute is a thing (thanks to Domenic for getting it over the line!), and we're shipping COOP and COEP, what's the plan for transitioning over to requiring it for the API?

-mike

Ulan Degenbaev

unread,
Sep 23, 2020, 9:22:49 AM9/23/20
to Mike West, blink-dev, yo...@yoav.ws, Domenic Denicola
Thanks Yoav!

Mike, we will gate the API behind CrossOriginIsolated in M88 before shipping it.
Reply all
Reply to author
Forward
0 new messages