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

[APP][2.1+] CPU Spy v0.4.0 beta - view time in state info [dec-7-2011]

OP storm717

28th March 2011, 08:47 AM   |  #1  
OP Retired Recognized Developer
Flag Austin, TX
Thanks Meter: 101
 
65 posts
Join Date:Joined: Sep 2007
Donate to Me
More
I've created a simple app to display the time the CPU spends in each frequency state and the current kernel build. May be useful to some... especially people running OC'ed kernels.

Also useful to confirm which kernel you're currently running.

** DOWNLOAD **
Android Market Link

Error complaining about states file not found? See this post.

*** Thanks to Rainerd for the patch to help with the negative state percentages.

Quote:

Change log

v0.4.0 beta
-Display total state time
-Massive code cleanup
-Fix duration overflow bug
-Removed read-as-root attempt when unable to access states file due to instability
-Slightly improved tablet support

v0.3.2 beta
-Pulled in fix from Rainerd to help with percentage mixups after reboot

v0.3.1 beta
-Small fix that may help with freezing issues with some custom ROMS

v0.3.0 beta
-Attempts to read time_in_state file as root in case reading is blocked by a custom ROM

v0.2.2 beta
-States are now sorted from highest to lowest frequency

v0.2.1 beta
-added "Deep Sleep" to states list for time when CPU is off

v0.2.0 beta
-Added "reset timers" option to set all state timers to 0 sec
-Added "restore timers" to show time-in-state since boot
-Small UI adjustments
-Timers now show hours

v0.1.0
-Initial market release

source: https://github.com/bvalosek/cpuspy
previous versions (source only): https://github.com/bvalosek/cpuspy/tags
Attached Thumbnails
Click image for larger version

Name:	ss2.jpg
Views:	6464
Size:	27.3 KB
ID:	553958   Click image for larger version

Name:	ss3.jpg
Views:	7715
Size:	46.7 KB
ID:	554872  
Last edited by storm717; 1st July 2012 at 04:26 AM. Reason: twitter
The Following 90 Users Say Thank You to storm717 For This Useful Post: [ View ]
28th March 2011, 03:51 PM   |  #2  
lactardjosh's Avatar
Senior Member
Thanks Meter: 303
 
550 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Works great on my rooted stock KB1 with CogKernel 4.

Since I'm running stock KB1, the full kernel name doesn't show up under About Phone and I've been looking for an easy way to confirm which kernel I've got installed at the moment, especially when I'm jumping from kernel to kernel. This works well.

If you made a (transparent) widget that showed the kernel name, I'd be all over it.
The Following 2 Users Say Thank You to lactardjosh For This Useful Post: [ View ]
28th March 2011, 04:09 PM   |  #3  
Hondo209's Avatar
Senior Member
Flag THE209
Thanks Meter: 13
 
235 posts
Join Date:Joined: Dec 2010
More
This is nice, now you can see what MHz use less of the cpu and you can undervolt more on those specific speeds.
28th March 2011, 05:14 PM   |  #4  
Johnny Paranoid's Avatar
Senior Member
Flag Waterford, MI
Thanks Meter: 47
 
425 posts
Join Date:Joined: Dec 2010
More
Works on setup in my sig. Useful tool! Thanks!
28th March 2011, 05:50 PM   |  #5  
iXNyNe's Avatar
Senior Member
Thanks Meter: 456
 
1,096 posts
Join Date:Joined: Dec 2010
Donate to Me
More
just out of curiosity this displays total time in state since bootup correct? not like since last unplugged or since last magic trick

*edit
btw bravo, gave ya 5 stars in market
28th March 2011, 06:10 PM   |  #6  
goodolsen's Avatar
Senior Member
Flag D/FW area
Thanks Meter: 36
 
434 posts
Join Date:Joined: Mar 2011
More
Just installed, I'll try it out through out the day and see how things look.
28th March 2011, 07:52 PM   |  #7  
Member
Thanks Meter: 16
 
88 posts
Join Date:Joined: Feb 2011
More
This is incredibly useful, thanks!
28th March 2011, 08:25 PM   |  #8  
diablo009's Avatar
Senior Member
Flag Atlanta GA
Thanks Meter: 1,344
 
5,540 posts
Join Date:Joined: Apr 2009
More
[Request]
Very useful. Thanks mate.

Working on dilligaf's 7.x with dilli pickle kernel, glitterball's kernel and xcaliburinhand's 2.3.5 kernel.

Request:

Could u please add a "reset" feature, if possible, so it would be easier to get the time spent on each state when playing with maximum CPU speeds. Like I might set my max speed to 1000 from 1280 n want to check the time spent at 1000. Right now only a reboot is resetting the data.

Or, like my gut feeling says, is this app reading for this data from anywhere forcing a reboot if the data has to be reset.
28th March 2011, 09:50 PM   |  #9  
rajendra82's Avatar
Senior Member
Flag Atlanta, GA
Thanks Meter: 434
 
1,233 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by diablo009

Very useful. Thanks mate.

Working on dilligaf's 7.x with dilli pickle kernel, glitterball's kernel and xcaliburinhand's 2.3.5 kernel.

Request:

Could u please add a "reset" feature, if possible, so it would be easier to get the time spent on each state when playing with maximum CPU speeds. Like I might set my max speed to 1000 from 1280 n want to check the time spent at 1000. Right now only a reboot is resetting the data.

Or, like my gut feeling says, is this app reading for this data from anywhere forcing a reboot if the data has to be reset.

It's reading the data from:

/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

Which only gets set to zero at each reboot.
Last edited by rajendra82; 28th March 2011 at 09:52 PM.
The Following 3 Users Say Thank You to rajendra82 For This Useful Post: [ View ]
28th March 2011, 10:01 PM   |  #10  
Senior Member
Thanks Meter: 11
 
222 posts
Join Date:Joined: Dec 2010
Great app!

works perfect on the setup in my sig.

Thanks!

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes