Cumulative Keep awake/wakelocks vs. time

Search This thread

if0rg0t

Senior Member
Jul 28, 2011
108
12
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

Senior Member
Nov 29, 2012
732
110
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.