The @w3c Compute Pressure #API specification defines a set of pressure states (e.g. high CPU load) delivered to a #WebApp to signal when adaptation of the workload is appropriate to ensure consistent quality of service. #timetoimplement
▶️ https://www.w3.org/TR/compute-pressure/
The document defines 3 concepts: processing units (such as the CPU), supported sources (such as #GPU), sampling and reporting rates.
Key usage scenarios are described in this explainer: https://github.com/w3c/compute-pressure#readme