yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] realgpp:
Version 0.5.60

Hi guys, here you are the last version. I hope it's everything fine.

0.5.60 download

(add) Non-compatible devices: deep sleep info NOW available

(add) idle states: more infos (and improved the activity core)

(add) idle states: added buttons to refresh, reset and set timers

(fix) refresh button won't delete the timer if "cable option" is disabled

(fix) other 4 bugs you reported
[Android Apps and Games] ziggy34:
New version not working on my Nexus 10 running AOKP. I get the following...

file_not_exists:

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

The 'e' is missing. The "time_in_state" file is there.

EDIT: Got email reply back that it is being fixed and new version soon.
[Android Apps and Games] realgpp:
DHO!!! Thanks! I'm fixing it right now :good:

[EDIT] Fixed. Try the link in the changelog post
[Android Apps and Games] ziggy34:
Same error. Re-downloaded from the change log post.
[Android Apps and Games] realgpp:
:eek::eek::eek::eek: new link
[Android Apps and Games] miloytyn:
This works :good:
[Android Apps and Games] realgpp:
Glad to hear it! :D
[Android Apps and Games] ziggy34:
Yes, working fine now. Thanks.
[Android Apps and Games] User_99:
Thx for the update. All fine so far. German updated language good only "Logfile loaded" still in English. Should be "Log-Datei laden..." for German :D
[Android Apps and Games] egps2:
So far new update works great and I love the new refresh etc features on the cpu idle stats page. Thanks for implementing it!

If I find any bugs I'll post them here but so far it's fine :) Thanks
[Android Apps and Games] xxkelvynxx:
Thankssssssssssss

Enviado desde mi GT-N7100 usando Tapatalk 2
[Android Apps and Games] Silentbob999:
Hi,

Do you think you can achieve something like the screenshot below? Which show each core independently.

link

I think the possibility to make this work highly depend of the kernel.

On the kernel I am now the time_in_state file for other core than core 0 do not exist all the time (cpufreq is not always there, starting from CPU1)

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

cat /sys/devices/system/cpu/cpu1/cpufreq/stats/time_in_state

cat /sys/devices/system/cpu/cpu2/cpufreq/stats/time_in_state

cat /sys/devices/system/cpu/cpu3/cpufreq/stats/time_in_state

What do you think of this?
[Android Apps and Games] realgpp:
Hi I'm well aware of the situation and it's related to the cpufreq driver: as you said the problem is the presence of all the files. I developed a prototype to deal with those files but most of the time (test on almost 12 different friend's devices) the behaviour was the same as the original one so...
[Android Apps and Games] Silentbob999:
Do they appear if we induce a load on the cpu? Can you calculate PI before reading them lol !?

I am wondering where the data is stored while those files are not there !?

I did not expected you to answer that fast, the thread is so old ;)
[Android Apps and Games] realgpp:
It depends on the driver implementation, in my experience only the core0 file is correctly updated and most likely the other even cores have the same values or ridiculously low values.

Btw I'm wondering the same question.in my opinion the other values are not stored at all when the file doesn't exist.
[Android Apps and Games] iZLeeP:
Thanks [MENTION=3073696]realgpp[/MENTION] for the app. Works great in monitoring cpu states for either stock or custom kernel.
[Android Apps and Games] wuppiwuppi:
Honor 6 only shows 6 cores, but there should be 8 ?

Model is H60-L04
[Android Apps and Games] doitright:
I suggest adding a link to the source code (Developer / visit webpage) on play store, and prefer also a notice that it is gpl code. When I came across this on play store, it was not obvious at all that you were respecting the gpl, rather I had to search and stumble on this thread.
[Android Apps and Games] Skysurfer77:
I found the information page, this is why I edited my post ;)

Thanks for your fast answer!

Where can I mute the ui sounds?
[Android Apps and Games] realgpp:
It's not possible right now. I thought your post was a request for the next release
[Android Apps and Games] Skysurfer77:
Yeah, this would be awesome :good:
[Android Apps and Games] Pkt_Lnt:
Yes, please. Testing kernels for a dev trying to get deep sleep to work, this clicking will get me in trouble, gives away my checking phone often. :(
[Android Apps and Games] realgpp:
I'm on it right now :fingers-crossed:
[Android Apps and Games] ironia.:
sorry guys, ... imho all of us want FIRST a smooth , working /compatible app!

all this **** request on the UI (sound on/off...button, hide/show...anyone has his tastes.......) I think is a really a waste of time for a very very kind developer as realgpp
[Android Apps and Games] realgpp:
Changelog v0.5.11 beta

Added option in Preference to enable/disable UI sounds

Download HERE (today the upload of files doesn't work, at least for me )

I don't know I could have forget this option in the first place :eek:
[Android Apps and Games] hawkerpaul:
It doesn't seem to be remembering the <1% option when you go back into the app.
[Android Apps and Games] realgpp:
Can you report a concrete example of usage because it's working for me.

Something like: Open app - show 1% stats - home button - lock screen - app again and 1% stats are gone. Before doing everything try to disable and enable again the option and let me know :)
[Android Apps and Games] hawkerpaul:
I go into the app.

The eye icon has a line through it.

I press it so the line goes so we just have an eye icon.

I press back key to exit app.

I open app

Eye icon has line through it again
[Android Apps and Games] realgpp:
thank you, I gonna fix it :good:
[Android Apps and Games] realgpp:
Changelog

v0.5.12 beta Download HERE

fixed behaviour on cable discharging when battery level is equals to 100%

fixed disabling of cable events

different (dis)enabling option for audio of main and preference layout. Screenshots: 1, 2

fixed bug of "memory" lost (thanks to hawkerpaul)

Due to the problems in uploading files here, I'll use my mediafire directory for now on: link to directory
[Android Apps and Games] hawkerpaul:
Its still not remembering the <1% option I'm sorry mate :(

(follow same steps as post above)

In fact, there is a little more to it.

Go into app

<1% states all visible

click the eye so that <1% states invisible

exit app

go back into app

<1% states are all visible again

do nothing, just come out of the app

go into app

<1% states are invisible!!!!

So each time you go back into the app, the <1% state toggles itself.
[Android Apps and Games] realgpp:
let's try this :)

however I don't understand why I release something working for me and then the app doesn't work as it should for everyone o.O

Changelog

v0.5.13 beta Download HERE

fixed layout apparence when time_in_state file doesn't exist

fixed bug of "memory" lost (thanks to hawkerpaul) :fingers-crossed:
[Android Apps and Games] darni:
Remembers just fine with 0.5.12.
[Android Apps and Games] darni:
okay.. Installed .13 and it stopped to remember. Installed back .12, doesn't remember, put back .13, not remember, then I force stop program / clean data -> now it remembers again...
[Android Apps and Games] hawkerpaul:
That's it.

You have to clear data, otherwise it will not remember the options.

Cleared data and all ok now

:)
[Android Apps and Games] hawkerpaul:
Any chance you can reverse the logic to "disable cable" and "disable conenction" events to be "Enable" please?

Cheers mate
[Android Apps and Games] realgpp:
I'm glad it works now.

Actually right now I don't have the time to do this change (it's not so fast to do as it seems) because of other college stuffs, but I'll definitely reverse the logic asap.
[Android Apps and Games] ironia.:
sorry but latest beta version isn't working for me

done reset timers and enable/disable cable but the timers never reset when i plug/unplug the AC
[Android Apps and Games] hawkerpaul:
I'm getting quite a few problems to be honest.

Its very random as to if the <1% setting sticks or not. I dont get trouble with any of the other settings, only this one.

UPDATE: It appears the <1% setting gets lost on each reboot.

Quite often the timer disappears, where it says "time since boot" and "total state time"

Personally, I dont think there should be all those buttons on the bottom, and I dont think the icons used are not particularly intuitive I'm sorry.

The only option I think that needs to be easily accessible from the front screen would be to "Reset Timers" and I think this would be better suited to have as a "Reset Timers" button in the "Statistics since Reset/Unplugged" section.

The only other niggle I have is the one I mentioned before about changing the "Disable" tick boxes to be "Enable" as its far more logical.

What do you (and others on here) think about these suggestions?
[Android Apps and Games] darni:
+1 for the useless buttons. Reset is only one I ever use. And I like simple look, so rather keep those on menu and ditch the buttons..
[Android Apps and Games] bsoplinger:
+1 for the simple clean look

Sent from my Sprint Evo View 4G (PG41200) using Xparent Purple Tapatalk 2
[Android Apps and Games] realgpp:
Hi, try to follow the instruction of the first page:

If something doesn't work, before going crazy and cursing me, my suggestions are:

1. clean the app's data from the android application menu and then check if the problem is still there.

2. If it's still there, reinstall the app, clean the app's data and check again.

If the above methods haven't resolved the problem, write it here​

do you mean that the whole grey submenu, where it says "time since boot" and "total state time", and the relative time values disappear? Is there any chance you've noticed which situation(s) this very strange problem happens in? Honestly this is pretty surprising because there are no code lines where I make this layout disappear or disable or anything o.O ?_? (besides I've never seen it happens) If you can, please try to understand the triggering circumstances.

CHANGELOG V0.5.14 BETA Donwload HERE

It's possible to choose in preference the theme with buttons or the orginal one.

Maybe it's me and my developing/debugging work but I use those buttons intensively :)

As usual stay tuned :D
[Android Apps and Games] JokerAce:
What does the time spent on a particular mhz mean? For instance, when I use 1000 as the max cpu speed, 4% of the time it is used. And when I increase it to 1200, 3% of the time it is used. So.. anything that I can conclude from here?
[Android Apps and Games] realgpp:
I hope I've understood your question...

This percentage indicates the amount of time the CPU spent in each of several states. The numbers reflect the percentage of the time, since the last update made on time T0, that the CPU spent in each state.

Example at time T0:

Time since boot: 1:00:00 = 1 hour

Time in XYZ MHz: 0:06:00 = 6 minutes

Percentage = 6/60 = 0.10 -> 10%

This percentage is the value calculated in that precise istant T0. If XYZ MHz is not used anymore, it means the "time in state" value will remain equal to 6 miuntes, so, as long as time goes by, the above percentage will progressively decrease.

Example at time T1 > T0:

Time since boot: 2:00:00 = 2 hour

Time in XYZ MHz: 0:06:00 = 6 minutes

Percentage = 6/120 = 0.05 -> 0,05%

Hope this helped you to understand the meaning of the values ;)
[Android Apps and Games] donjamal:
hey,

the app is great but one request though: i would really love to see a bit more ics-ish theme, like white background with blue header lines and like black or greay text :) that would really improve the look and feel :)
[Android Apps and Games] ironia.:
Tried alla suggestion but works only version 0502
[Android Apps and Games] JokerAce:
Sir, so can I conclude that the CPU is not using 1200 mhz (3 mins) as frequently as 1000 mhz (4 mins) and thus there's no need to OC the kernel?
[Android Apps and Games] bsoplinger:
Not really. You can conclude that about the same amount of time is spent with the processor running as fast as it can. Where it gets useful is when doing relative comparisons. For example, if I have test app A enabled the phone runs at max speed 4% of the time over an hours testing, if it's disabled it only runs there 3% of the time. That means I can safely conclude that test app A doesn't cost me very much battery to use. Otoh if the max changes from 5 to 20 you have a resource hog. You can do the same thing looking at the other end of the scale, the amount percentage wise of time spent in deep sleep to maximize battery life.

Sent from my Sprint Evo View 4G (PG41200) using Xparent Purple Tapatalk 2
[Android Apps and Games] ironia.:
Realgpp i have already follow your suggestion:)
[Android Apps and Games] whitexp:
@realgpp

please see

http://xdaforums.com/showpost.php?p=28440743&postcount=239
[Android Apps and Games] realgpp:
You can ask to your kernel developer to make its kernel create the time_in_state file. Or, and it's the easiest way if you ask me, change your kernel ;)
[Android Apps and Games] hawkerpaul:
My timer never seems to automatically reset at all now on any cable connection/reconnection event.

I have the disable options unchecked, and threshold set to 0%
[Android Apps and Games] Pkt_Lnt:
Have you tried with threshold at 100%? That is where it is when first installed, and I have left mine at that and it works.
[Android Apps and Games] TheCreat:
I can confirm that I have the same problem. It works when CPU Spy is in the foreground or when it was run recently (i.e. when it's in memory), but it seems to fail if I haven't used it since the last reboot or (possibly) just not used it for a while.
[Android Apps and Games] realgpp:
Hi everyone,

I have introduced the option that let the app create a logfile, because I need more info to fix the bugs. The logfile file is pretty readable :) so if you think that some additional information could be useful, you are free to add lines :highfive:

When you experiment some problem, it would be really great for me :victory: have this file with a description of the problem :good:

Changelog v0.5.15 beta Download here

introduced the option that let the app create a logfile
[Android Apps and Games] leodasal2:
Thank you very much Mr. Realgpp for continuously polishing the app :good:
[Android Apps and Games] TheCreat:
Let me be the first to provide you with a .log file, it seems something crashes upon receiving the connection signal (or something like that).

Since xda doesn't seem to allow .log attachments, I've zipped it.
[Android Apps and Games] realgpp:
Because the log seems to say the app crash where it shouldn't :confused:, I've added more messages to the charger handler for a more accurate inspection.

I've created the gmail account cpuspy.realgpp@gmail.com so sending me the log file will be more confortable for you all, without zipping and uploading it here or somewhere else ;)

Changelog v0.5.16 beta Donwload HERE

added email contact (cpuspy.realgpp@gmail.com) in the Information page

added more log messages to the charger handler

each new installation/update the timer and connection variables will be deleted
[Android Apps and Games] hawkerpaul:
on 5.16, if I select "show information" the app hangs and eventually it asks to wait or close.

I'm still really confused with how these timers are meant to work.

Wouldn't it be far better to scrap the threshold slider (I still can't get my head around is it meant to be at 100% or 0%), and have one single tick box for "Auto Reset Timers" for cable events? If its ticked, timers get reset on cable connection/disconnection, if its not ticked, they dont.
[Android Apps and Games] realgpp:
I think the mechanism is pretty simple:

If the "Disable Cable Events" option is checked -> the app won't reset the timer.

If the "Disable Cable Events" option is unchecked -> the app will reset the timer but after checking the "threshold" value:

If the battery level is greater than this threshold then the app reset the timer.

Zero means that the app will reset the timer

every time

the cable is unplugged

no matter which is the battery level

. That's it.​

Honestly because of other college stuffs I'd like to spend my time fixing bugs rather than restyling the layout. When I get rid of this (college) deadlines I'll make some changes in this other direction for sure

Changelog v0.5.17 beta Donwload HERE

fixed "information" page crash
[Android Apps and Games] realgpp:
Thanks :good:

I'll search what's the problem here :confused:

edit: i've resurrected my old htc wildfire and I'm doing some tests. Maybe I've founded the reason of the last crash reports. Hope to release the new version very soon :fingers-crossed:
[Android Apps and Games] realgpp:
Changelog v0.5.18 beta Donwload HERE

fixed random crash related to cable (un)plugging

fixed computing the wifi values of timer section

added some more messages for a better inspection of the log file

Now the last crash reports about the cable shouldn't happens anymore. The timer will be set/reset even if the app isn't in memory, like, for example, when you (re)boot your phone. I've tested this last version on froyo and ics and it's perfectly working.

As usual let me know if there are problems :)
[Android Apps and Games] TheCreat:
Thanks, I'll have a go and see if resetting (by cable unplugging) now works properly :-)

Swyped on my Galaxy S2
[Android Apps and Games] Silentbob999:
Maybe I am totally crazy but I flash a new rom + wipe data 2 days ago... And I was getting freeze /reboot while unplugging charger...

Last update you did on 0.5.18 seems to have fix crash that! I I never thought that was coming from your application. Is it possible?

I always thought that these freeze was from deepidle or liveoc.

Now everything is rock solid! Super stable ;-)

So I do not know for sure if these issues was really related with your application but you really deserve a big Thanks for your engagement to the community. So many people are using your app, it is nice to see that you always listen / modify / update / fix so fast in response to what is says here.

Thanks you.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Android Apps and Games] JokerAce:
OP, think you can add the function that tracks the exact time?

i.e. When looking at the main page, it tells us for how long it was spent at a mhz. Can we have a function like, when clicking on it, it tells us from XX:XX hr - XX:XX hr it was on a mhz. If that's possible, perhaps a graph chart can be created on the CPU usage over a time frame.
[Android Apps and Games] jr_718:
Reserved and thanks for the app.
[Android Apps and Games] realgpp:
Well I don't what to say. Everything is possible ;) ( Honestly I don't understand neither why some people experiments problems wih the app that I've never seen :confused: )

However I'm glad that now it's working fine :good:

I didn't hear about any file / system object containing this kind of information. The point here is that the cpu change freq very often and sometimes spends only few milliseconds in one freq. All the apps I've seen set a timer (usually one second) and print the value of freq in that precise moment. Tracking this information means saving a huge amount of data.

However I'l take a look around, maybe I'm wrong and it's more easy than it seems :good: :D
[Android Apps and Games] Simba501:
And now timer reset works on unplug (latest version - 5.18).
[Android Apps and Games] realgpp:
for the sake of my mental integrity :silly:, I hope nobody reports a bug about the (un)plugging event :fingers-crossed: :D
[Android Apps and Games] hawkerpaul:
It's working properly for the first time for me too.

:)
[Android Apps and Games] TheCreat:
Just joining in with all the confirmations that everything arenas to work properly now. Only unplugged a few rides since I installed it, but every tune it tested fine. Thanks for the fixes :-)

Swyped on my Galaxy S2
[Android Apps and Games] Pkt_Lnt:
There's an app, errr, button for that, you know? :D
[Android Apps and Games] avidmovies:
Latest version works well, no bugs yet!
[Android Apps and Games] sert00:
i see this 3ad only now,didn't immagine that anyone develop on the classic "cpu spy" application.hope it works on jelly bean 4.1.1,i try it after i've finished to flash roms(i'm trying 7\8 rom to choose one as a daily driver)

I like the idea of expand cpu spy's features...curious of you already did.cheers and keep up the good work!:victory:
[Android Apps and Games] Pkt_Lnt:
It does, no worry. ;)

- from my Kindroid Jelly Fire Bean - JB 4.1.1
[Android Apps and Games] realgpp:
guys I'm not used to all this positive feedback :o

I'm glad everything works well because in this days, unfortunately, I don't have any time to spend on the app :crying:
[Android Apps and Games] spyne82:
Could you please make it run on lg p990 alias optimus speed?

It shows that my device isn't compatible ...

Sorry for my bad english..
[Android Apps and Games] realgpp:
The incompatibility the app shows it doesn't depends on the app itself. The problem here is that the file, time_in_state, doesn't exist and this is a kernel related issue. So as I said here, you can ask to your kernel developer to make its kernel create the time_in_state file. Or, and it's the easiest way if you ask me, change your kernel :)
[Android Apps and Games] spyne82:
Oh okay i try to change the kernel,... thanks for your reply...:D
[Android Apps and Games] realgpp:
Is anybody here that think the data connection information are useful? I'm asking because I was think to remove them to speed the app up a little if nobadoy uses it
[Android Apps and Games] Karpfenhai:
To be honest, i see cpispy as a quick tool to monitor the deepsleep behaviour of my device.

Since data consumption is embedded in bbs it's not really needed.

From my pov it can be removed.

Tapatalked from my Samsung GT9100
[Android Apps and Games] Simba501:
+1.
[Android Apps and Games] JokerAce:
Well it's a feature that wouldn't kill to have. But... honestly I don't peek at it. Anyhow, I personally think the this app is as fast as it gets already :good:

Can be agreed. :D
[Android Apps and Games] TheCreat:
I basically agree with what others have said so far. I don't use it as it doesn't really provide any additional information by itself. You can't deduce power usage of either WiFi or mobile data as only those two are listed and there are far bigger consumers. Also, for most phones android already provides that kind of information, so I really don't see the point... It feels like the feature tries to reach beyond what the app can do with the information available to it.

DL;DR: +1 for removing it :)
[Android Apps and Games] Simba501:
Can you add the ability to reset timers while plugged in? There are times that I want to monitor frequency stats while wakelocked.
[Android Apps and Games] hawkerpaul:
Just manually select "reset timers"
[Android Apps and Games] Simba501:
Let me clarify; manually resetting timers while plugged in results in a "unplug your device" message to reset timers. I'd like to be able to manually reset while plugged in.
[Android Apps and Games] realgpp:
Right now you can reset the time while plugged in only if the cable event is disabled.

Could be this what need?
[Android Apps and Games] Simba501:
Sounds like it. Will that disable the reset on unplug?
[Android Apps and Games] realgpp:
yes, of course
[Android Apps and Games] astrologos:
I'm using latest v0.5.18, and when i exit app it remains active in memory. Is this normal?
[Android Apps and Games] darni:
Are you high?
[Android Apps and Games] Karpfenhai:
Plus one it doesnt exit..
[Android Apps and Games] TheCreat:
it's not supposed to exit. Depending on your settings of course. Android will free memory if it needs it. Official guidelines for Android say to not provide an exit button (or remove the app from memory when it becomes inactive) for a reason.

Swyped on my Galaxy S2
[Android Apps and Games] AlkaDragos:
Noticed that too, anyway, if you have cable event enabled, that works only if your application it's opened, and seems logic to me. If you close it, it won't detect any events...i think this should be made by creating a process that runs in background instead of leaving the application active :)