[APP] CPUStats - simple cpu statistics

amossam

Senior Member
Oct 23, 2009
171
24
0
Hello there!

I had Motorola Milestone before S3, and I developed this app. Since it seems that there were few users that found it use full, I rewrite it to suport multi-cores and S3 phone.

In short:

This app will show info and details about your phone CPU, like active governor, active cores, total system uptime, wake time, deep sleep time and frequency details. It auto refreshes every one second, and on my S3 it takes less than 8% of cpu...


I tested it on stock XELLA rom with siyah kernel, but it should work on any rom/kernel versions _IF_ kernel has cpufreq_stats enabled and loaded.
If some values are 0 or -1 it means that it cannot read those values, either because file doesn't have read-all permissions or cpufreq_stats is not enabled/loaded, and would be nice if you'd report that back.
Also, this file _should_ work with almost any android device, but I only have S3 to test it, so if you have another device, please test it and report back result, with info about phone/rom/kernel.

Any comments and suggestions are welcome!!

updates:
v0.21 - added temperature reading. Temperature is from CPU directly and not from battery! This will almost certainly work only on S3 (and maybe device with similar SoC)...


P.S.
Version starts from 0.2 because I reused lot of code from old app...

P.P.S.
Original thread is here.

P.P.S.
I hope that I posted this to correct forum section!


Screenshot attached.

Screenshot_2013-02-01-15-46-49.jpg
 

Attachments

Last edited:

qtwrk

Senior Member
Sep 9, 2011
2,717
867
0
30
Barcelona
thx!

that is in TODO list, first after few minor code fixes... anything else?
2 small things, please take look at screenshot

1. The core 3 is position shifted... I guess because both core 1 and 2 are off, and double off took 2 more spaces than double on so...

2. could you hide unused frequencies? I am using Siyah, which is able to use 200 to 1800 but I set maximum to 1400, so you may consider don't show those unused frequency so occupy less place?

By the way, could you explain what "frequency transition " means?
Sent from my GT-I9300 using xda premium
 

Attachments

Last edited:

amossam

Senior Member
Oct 23, 2009
171
24
0
2 small things, please take look at screenshot

1. The core 3 is position shifted... I guess because both core 1 and 2 are off, and double off took 2 more spaces than double on so...

2. could you hide unused frequencies? I am using Siyah, which is able to use 200 to 1800 but I set maximum to 1400, so you may consider don't show those unused frequency so occupy less place?

By the way, could you explain what "frequency transition " means?
Sent from my GT-I9300 using xda premium
1. yea, two off's seems to make that issues. I'll try to make a font little smaller, or maybe in two lines...

2. I was thinking about hiding unused freqs, but it didn't bother me enought! :D will do it.

Frequency transitions is number of frequency hops. so, it's number of times that cpu changed frequency.
 

qtwrk

Senior Member
Sep 9, 2011
2,717
867
0
30
Barcelona
1. yea, two off's seems to make that issues. I'll try to make a font little smaller, or maybe in two lines...

2. I was thinking about hiding unused freqs, but it didn't bother me enought! :D will do it.

Frequency transitions is number of frequency hops. so, it's number of times that cpu changed frequency.
A little thinking, I assume in frequency detail

It says "CPU (governor ) "
And beneath that there 2 sets of numbers, number in ( ) are means current setting min and max I think? But if so, consider you put word governor inside ( ), the number below shouldn't show up otherwise?

And I guess current frequency , something like 200 (200), is kinda useless (no offense, please don't get me wrong, maybe you put there for some purpose, but I just don't see it )

Sent from my GT-I9300 using xda premium
 
Last edited:

amossam

Senior Member
Oct 23, 2009
171
24
0
A little thinking, I assume in frequency detail

It says "CPU (governor ) "
And beneath that there 2 sets of numbers, number in ( ) are means current setting min and max I think? But if so, consider you put word governor inside ( ), the number below shouldn't show up otherwise?

And I guess current frequency , something like 200 (200), is kinda useless (no offense, please don't get me wrong, maybe you put there for some purpose, but I just don't see it )

Sent from my GT-I9300 using xda premium
no offense taken! ;)
one number is what CPU reports it's frequency, and in () is number which governor says that CPU frequency is.
because those two number don't need to be same, altought most of time they are same. not shure did I explained well! :D