androidandroid-profiler

Is there a way to find out the value of the three categories like light, medium and heavy on Android Studio's Energy Profiler?


Is there a way to find out the value of the three categories like light, medium and heavy on Android Studio's Energy Profiler? for example the light category, the battery energy used starts from 0 mah to 10 mah.enter image description here


Solution

  • The idea behind using light/medium/heavy instead of actual amperage numbers is to provide relative battery usage throughout the profiling session to help developers discover energy spikes and investigate potential performance bottlenecks. The way the battery usage is measured is a model built after a reference device (Pixel 2) and calculating CPU/network/GPS usage relative to that device. You can find the threshold in the Android Studio source code but the amperage numbers won't make much sense because they are all relative numbers.