Intent to Extend Experiment: Compute Pressure API

1,004 views
Skip to first unread message

Mandy, Arnaud

unread,
Dec 4, 2023, 1:59:22 PM12/4/23
to Abridged recipients

Contact emails

kenneth.r.c...@intel.com, arnaud...@intel.com, wei4...@intel.com, raphael.ku...@intel.com


Original I2E

https://groups.google.com/a/chromium.org/g/blink-dev/c/QfJ4pngu3gc/


Explainer

https://github.com/w3c/compute-pressure/blob/main/README.md


Specification

https://www.w3.org/TR/compute-pressure


Origin Trial

https://developer.chrome.com/origintrials/#/view_trial/1196831600973709313


Summary

The Compute Pressure API offers high-level states that represent the pressure on the system. It allows the implementation to use the right underlying hardware metrics to ensure that users can take advantage of all the processing power available to them as long as the system is not under unmanageable stress. “Pressure” is a generic term by design – at the moment it is calculated based on CPU load, but future plans include using signals from temperature and battery status, for example.


We would like to extend the current Origin Trial from M120 to M123 (inclusive).


Blink component

Blink>PerformanceAPIs>ComputePressure


Search tags

compute pressure

TAG review

spec review: https://github.com/w3ctag/design-reviews/issues/795 wide review tracker: https://github.com/w3c/compute-pressure/issues/177


TAG review status

Issues addressed


Chromium Trial Name

ComputePressure_v2


Origin Trial documentation link

https://developer.chrome.com/docs/web-platform/compute-pressure/


Chromium Trial Name

ComputePressure


Origin Trial documentation link

https://github.com/oyiptong/compute-pressure/blob/main/README.md


Risks



Interoperability and Compatibility



Gecko: No signal (https://github.com/mozilla/standards-positions/issues/521)


WebKit: Negative (https://lists.webkit.org/pipermail/webkit-dev/2021-May/031845.html) This issue has been taken into account: https://github.com/w3c/compute-pressure/issues/24


Web developers: Positive (https://github.com/w3c/compute-pressure/issues/14)


Other signals:


Security

https://github.com/w3c/compute-pressure/issues/79



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Motivation For Requesting Extension.

We propose extending the “Compute Pressure API” Origin Trial. We decided to extend the experiment based on feedback from users and a need for wider testing with 3rd-party Origin Trial tokens.


One of the features of this API is that it can provide data to iframe's, even cross-origin ones, under certain circumstances. That is due to the fact that many video conferencing services provide an SDK to their users based on embedding the 3rd party code via an iframe. It was reported that this didn't work with the current origin trial, unless both the SDK and the embedder ask for individual tokens, which is not scalable across a number of sites, limiting the usefulness of the origin trial.


It is now possible to use a third-party origin trial instead which makes it possible for providers of embedded content to try out a new feature across multiple sites. For this reason we are requesting an extension.


Furthermore, the specification has been modified to support workers in the privacy algorithms. The implementation will be merged to chromium for M122 and should also be evaluated by the API users.


Ongoing technical constraints


Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Supported to Windows, Mac, Linux, ChromeOS.


Support on Android (incl. Android WebView) has been deprioritized as there is no current way to access the telemetry needed after Android 11, and the current partners we are engaging with have no need as they are using native solutions on Android at this point.


Is this feature fully tested by web-platform-tests?

Yes

https://wpt.fyi/results/compute-pressure?label=master&label=experimental&aligned&view=subtest&q=compute-pressure


DevTrial instructions

https://github.com/w3c/compute-pressure/blob/main/HOWTO.md


Flag name on chrome://flags

see https://github.com/w3c/compute-pressure/blob/main/HOWTO.md


Finch feature name

None


Non-finch justification

None


Requires code in //chrome?

False


Tracking bug

https://crbug.com/1067627


Launch bug

https://crbug.com/1173266


Estimated milestones


 OriginTrial desktop last  (new request)     


123

OriginTrial desktop last


118

OriginTrial desktop first


115

OriginTrial desktop last


94

OriginTrial desktop first


92

DevTrial on desktop


109



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5597608644968448


Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/LTIRZ24C5Os/m/BPSeJ8y0BwAJ Ready for Trial: https://groups.google.com/u/1/a/chromium.org/g/blink-dev/c/-1ciwdn23J4

Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/QfJ4pngu3gc

Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/HzVV-sM97T0

Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/QfJ4pngu3gc/




Rick Byers

unread,
Dec 5, 2023, 2:20:47 PM12/5/23
to Mandy, Arnaud, Abridged recipients
Hi,
Can you please request review for the security, privacy and debuggability bits now in the chromestatus tool? Perhaps there's some history somewhere you can point at from the first OT?

Otherwise, seems reasonable to extend to me.

Rick


--
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/BY5PR11MB40694670568F3D61825DD8929386A%40BY5PR11MB4069.namprd11.prod.outlook.com.

Chris Harrelson

unread,
Dec 6, 2023, 11:57:09 AM12/6/23
to Rick Byers, Mandy, Arnaud, Abridged recipients
On Tue, Dec 5, 2023 at 11:20 AM Rick Byers <rby...@chromium.org> wrote:
Hi,
Can you please request review for the security, privacy and debuggability bits now in the chromestatus tool? Perhaps there's some history somewhere you can point at from the first OT?

I think you also need to request API owners review, the intent isn't showing up properly in our dashboard.
 

Arnaud Mandy

unread,
Dec 7, 2023, 1:38:29 PM12/7/23
to blink-dev, Chris Harrelson, Arnaud Mandy, Abridged recipients, rby...@chromium.org
@chris @rick, Thanks for the comments, it seems to be a new process.

We had gone through these privacy and security checks before, but not with the new chromestatus interface.

We've been requesting approval from privacy, security and also debuggability teams on chromestatus now.

Arnaud

Rick Byers

unread,
Dec 12, 2023, 10:27:59 AM12/12/23
to Arnaud Mandy, blink-dev, Chris Harrelson
Thanks, yeah the chromestatus UI is new so it's a little more formal now but not a new requirement. 

LGTM for API owners. But you'll need to confirm approval from security and privacy before extending the OT.

Arnaud Mandy

unread,
Dec 19, 2023, 4:18:23 AM12/19/23
to blink-dev, rby...@chromium.org, blink-dev, Chris Harrelson, Arnaud Mandy

@chris @rick, I think we have, now, all the approvals in order.
https://chromestatus.com/feature/5597608644968448?context=myfeatures&gate=6581325103890432

Can we consider our "Intent to Extend Experiment" approved?

Arnaud.
 

Mike Taylor

unread,
Dec 19, 2023, 10:37:31 AM12/19/23
to Arnaud Mandy, blink-dev, rby...@chromium.org, Chris Harrelson

Rick Byers

unread,
Dec 19, 2023, 11:35:34 AM12/19/23
to Mike Taylor, Arnaud Mandy, blink-dev, Chris Harrelson
+1. Thanks Arnaud! 

Mandy, Arnaud

unread,
Dec 20, 2023, 2:42:14 AM12/20/23
to Rick Byers, Mike Taylor, blink-dev, Chris Harrelson
Great!

Thanks to you for pointing out the chromestatus UI, new feature and follow up!

Arnaud

From: Rick Byers <rby...@chromium.org>
Sent: Tuesday, December 19, 2023 18:35
To: Mike Taylor <mike...@chromium.org>
Cc: Mandy, Arnaud <arnaud...@intel.com>; blink-dev <blin...@chromium.org>; Chris Harrelson <chri...@chromium.org>
Subject: Re: [blink-dev] Intent to Extend Experiment: Compute Pressure API
 
Reply all
Reply to author
Forward
0 new messages