Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,899 Members 38,042 Now Online
XDA Developers Android and Mobile Development Forum

Cumulative Keep awake/wakelocks vs. time

Tip us?
 
if0rg0t
Old
#1  
Senior Member - OP
Thanks Meter 13
Posts: 106
Join Date: Jul 2011
Default Cumulative Keep awake/wakelocks vs. time

Is there an app that measures the cumulative keep awake time per app versus time ... Along with battery percentage vs time. This would be useful in diagnosing apps that have excessive wakelocks and correlating there keep awake time periods with periods of excessive battery drain. As it stands right now with apps like better battery stats and the stock Android battery app,, you only know the cumulative keep awake or wake lock time as a single number rather than as a graph plotted versus time to overlay on top of the battery drain percentage graph. One always ends up speculating as to when that keep awake time actually occurred vs the battery drain.

So ideally I would want all of those statistics that come up in the stock Android battery app along with wakelock time, such as a CPU time total CPU time awake time etc versus time. A simple way to implement this would be to listen for battery percentage drops like many of the battery monitoring apps already do, but also record all of those other statistics and the current system time at the same time.

Is there anything already out there or anyone willing to add this functionality to their existing app?
 
PsychDrummer
Old
#2  
Senior Member
Thanks Meter 95
Posts: 647
Join Date: Nov 2012
Quote:
Originally Posted by if0rg0t View Post
Is there an app that measures the cumulative keep awake time per app versus time ... Along with battery percentage vs time. This would be useful in diagnosing apps that have excessive wakelocks and correlating there keep awake time periods with periods of excessive battery drain. As it stands right now with apps like better battery stats and the stock Android battery app,, you only know the cumulative keep awake or wake lock time as a single number rather than as a graph plotted versus time to overlay on top of the battery drain percentage graph. One always ends up speculating as to when that keep awake time actually occurred vs the battery drain.

So ideally I would want all of those statistics that come up in the stock Android battery app along with wakelock time, such as a CPU time total CPU time awake time etc versus time. A simple way to implement this would be to listen for battery percentage drops like many of the battery monitoring apps already do, but also record all of those other statistics and the current system time at the same time.

Is there anything already out there or anyone willing to add this functionality to their existing app?
This is a very late response because I found this thread through searching a question. But, are you trying to figure out if huge number of wakelocks that don't hold the device awake for very long cause battery drain? If so, that's what I'm trying to figure out. I have a wifi wakelock that kept the device awake for less than 1 min over the course of 3 hours. However, the number of wakelocks is over 2,000 so I'm trying to figure out if it is affecting the battery life.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes