Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Cumulative Keep awake/wakelocks vs. time

OP if0rg0t

5th February 2014, 08:59 PM   |  #1  
OP Senior Member
Thanks Meter: 13
 
106 posts
Join Date:Joined: Jul 2011
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?
3rd August 2014, 08:47 PM   |  #2  
Senior Member
Thanks Meter: 111
 
703 posts
Join Date:Joined: Nov 2012
Quote:
Originally Posted by if0rg0t

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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes