measure-sh / measure

Measure is an open source tool to monitor mobile apps.
https://measure.sh
Apache License 2.0
543 stars 27 forks source link

Track low power mode as an attribute for events and spans #1522

Closed abhaysood closed 1 week ago

abhaysood commented 1 week ago

Android: https://developer.android.com/reference/android/os/PowerManager#isPowerSaveMode() iOS: https://developer.apple.com/documentation/foundation/nsprocessinfo/1617047-lowpowermodeenabled

Attribute name: device_low_power_mode: Boolean

Android SDK should also capture: device_thermal_throttling_enabled: Boolean optionally (min SDK 29) https://developer.android.com/reference/android/os/PowerManager#getCurrentThermalStatus()