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.
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.