MoreFreeze
MoreFreeze

Reputation: 2936

How to estimate power consumption of an Android app? Is it linear?

I do a few of experiments and find I can't estimate power consumption of an app.

e.g.: I find it is 100mW when I just run my app, and it is 20mW when I do nothing. I think 80mW is consumed by my app. But it is 200mW I run another app B and my app also run, and it is 160mW when I just run app B, so my app also consume 40mW? Which one is correct?

In my eyes, it relate to CPU load rate, or something other I don't know. So we can not estimate power consumption by subtraction because it's not linear. So I want to know how to estimate power consumption correctly?

Any advice is welcome.

Upvotes: 1

Views: 2129

Answers (2)

Reno
Reno

Reputation: 33792

Have a look at PowerTutor

PowerTutor is an application for Google phones that displays the power consumed by major system components such as CPU, network interface, display, and GPS receiver and different applications

enter image description here

enter image description here

Upvotes: 1

Kurtis Nusbaum
Kurtis Nusbaum

Reputation: 30825

I'm not sure how fine grained up power consumption you're looking for, but I can tell you a good rule of thumb for keeping power usage to a minimum: only use the radios when necessary. The bulk of power usage from your app is going to be from using the GPS and network radios. If you can keep those to a minimum, you're app is just going to take dainty little sips of power like it's drinking tea at a cricket match.

Upvotes: 0

Related Questions