compute-pressure icon indicating copy to clipboard operation
compute-pressure copied to clipboard

Use-case: provide a battery draining rate indication for application

Open taste1981 opened this issue 2 years ago • 2 comments

Application not well optimized/configured may have higher power consumption and drains battery quicker.

If compute-pressure API could provide indication on how fast your app is draining battery (by estimated battery life if the application keeps running), this will help application update configuration at runtime (for example, decide whether to use HW encoder or SW encoder for a video conferencing app.).

Current PressureState definition uses battery level as one of the factor for reporting pressure. However, battery draining speed should also be considered.

If you set a quota that you expect your application to run continuously on the platform, PressureState will switch accordingly on draining rate and expected battery draining out time.

taste1981 avatar Sep 19 '22 07:09 taste1981

This is related to #119

kenchris avatar Sep 19 '22 08:09 kenchris

Would this also involve that compute-pressure API would be per process (app)?

arskama avatar Nov 09 '23 07:11 arskama

closed as duplicate of #119

arskama avatar Sep 17 '24 12:09 arskama