Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,404 Members 40,091 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
storm717
Old
(Last edited by storm717; 1st July 2012 at 03:26 AM.) Reason: twitter
#1  
Retired Recognized Developer - OP
Thanks Meter 101
Posts: 65
Join Date: Sep 2007
Location: Austin, TX

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

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:	6412
Size:	27.3 KB
ID:	553958   Click image for larger version

Name:	ss3.jpg
Views:	7653
Size:	46.7 KB
ID:	554872  
The Following 90 Users Say Thank You to storm717 For This Useful Post: [ Click to Expand ]
 
lactardjosh
Old
#2  
lactardjosh's Avatar
Senior Member
Thanks Meter 303
Posts: 550
Join Date: Dec 2010

 
DONATE TO ME
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: [ Click to Expand ]
 
Hondo209
Old
#3  
Hondo209's Avatar
Senior Member
Thanks Meter 13
Posts: 227
Join Date: Dec 2010
Location: THE209
This is nice, now you can see what MHz use less of the cpu and you can undervolt more on those specific speeds.
 
Johnny Paranoid
Old
#4  
Johnny Paranoid's Avatar
Senior Member
Thanks Meter 47
Posts: 425
Join Date: Dec 2010
Location: Waterford, MI
Works on setup in my sig. Useful tool! Thanks!
If I help you out, click the "thanks" button why not?
 
iXNyNe
Old
#5  
iXNyNe's Avatar
Senior Member
Thanks Meter 449
Posts: 1,089
Join Date: Dec 2010

 
DONATE TO ME
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
Habitual Information Indian GiverPost Editor
[edit]Nevermind I take that back[/edit]
 
goodolsen
Old
#6  
goodolsen's Avatar
Senior Member
Thanks Meter 36
Posts: 434
Join Date: Mar 2011
Location: D/FW area
Just installed, I'll try it out through out the day and see how things look.
Samsung Captivate - SimplyAOKP 5 Dark Theme

HP Touchpad 32gb- CM9 latest nightly
 
stinkynoon
Old
#7  
Member
Thanks Meter 16
Posts: 88
Join Date: Feb 2011
This is incredibly useful, thanks!
 
diablo009
Old
#8  
diablo009's Avatar
Senior Member
Thanks Meter 1343
Posts: 5,534
Join Date: Apr 2009
Location: Atlanta GA
Default [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.


T Mobile Galaxy S5: [ROM] AllianceRom - Build 2

AT&T Galaxy S5: [ROM] Stock Rooted


All Infuse modems individually packed into CWM flashable packages


Android Memory Management
Customizing Icons

Clicking "THANKS" is the simplest and easiest way of showing appreciation.
 
rajendra82
Old
(Last edited by rajendra82; 28th March 2011 at 08:52 PM.)
#9  
rajendra82's Avatar
Senior Member
Thanks Meter 427
Posts: 1,227
Join Date: Jul 2010
Location: Atlanta, GA
Quote:
Originally Posted by diablo009 View Post
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.
The Following 3 Users Say Thank You to rajendra82 For This Useful Post: [ Click to Expand ]
 
ccdoggy
Old
#10  
Senior Member
Thanks Meter 11
Posts: 222
Join Date: Dec 2010
Great app!

works perfect on the setup in my sig.

Thanks!
Mosaic IV, Xcal's voodoo kernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes