• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] Tracing cpu eating apps

Blyss

Android Enthusiast
Just curious, always curious. Since my last batch of updates, SOMETHING had been eating my cpu. At first I thought it was the new 10.0 of dolphin -killing that solved it yesterday but not today. So how to see what's causing my cpu to be locked at the max end of my scale? Before I figured it out because I was on battery and just looked to see what was using the most and it was dolphin. Before I killed it I saw in set cpu my cpu solid at 1.8 ghz. After it behaved normally. Same thing today but force killing everything I could with auto memory manager didn't stop it. RebooTing did. Running Alliance 3.1 but I'm pretty sure it's not the Rom as it didn't do this the first week.
 
Just curious, always curious. Since my last batch of updates, SOMETHING had been eating my cpu. At first I thought it was the new 10.0 of dolphin -killing that solved it yesterday but not today. So how to see what's causing my cpu to be locked at the max end of my scale? Before I figured it out because I was on battery and just looked to see what was using the most and it was dolphin. Before I killed it I saw in set cpu my cpu solid at 1.8 ghz. After it behaved normally. Same thing today but force killing everything I could with auto memory manager didn't stop it. RebooTing did. Running Alliance 3.1 but I'm pretty sure it's not the Rom as it didn't do this the first week.

The PS command in a terminal emulator will show all running processes, both in and outside of Android. I think it also has a column for CPU time used. If not, maybe the TOP command would be more helpful.
 
The PS command in a terminal emulator will show all running processes, both in and outside of Android. I think it also has a column for CPU time used. If not, maybe the TOP command would be more helpful.


Terminal on phone makes me dizzy. I never even thought about a terminal command though. Which btw was it you I was reading in one of these threads talking about DOS? I think so. We got out first computer when I was 8. That was 1992 and it had ms-dos before I later put Windows 3.1 on it. That's how I learned computers and everything about them that I know. I started programming in quick basic back then too.

Now a lot of that good has been undone. I have a problem and the terminal didn't even cross my mind. I didn't start fooling with Linux till many years later... probably 10 years ago. Now the only pc in the house is a derelict laptop with no hard drive and no cooling. It boots ubuntu from a flash reader and for cooling we sit it on an ice pack. Not making that up! This one we've got coming this week comes with Windows 8 and it's gonna be formatted almost before I turn it on. I wanna make sure it works good, make a restore disc and then wipe it for Windows 7 which I think is pretty nice. I game a lot so I have been partial to Windows and also 7 IS a good os, I don't care what anyone says about M$
 
Terminal on phone makes me dizzy.
...

Especially when viewed with 6 point text! :eek:



...
Which btw was it you I was reading in one of these threads talking about DOS? I think so.

Sure was! :D I'm known to do that now and again. lol I still write DOS BASIC and assembly code, and (in my ever-shrinking spare time lol) I am working on making a full-featured GUI, programming language and compiler set for it. And the Motorola 68k... one of my favorite chips. :D



We got out first computer when I was 8. That was 1992 and it had ms-dos before I later put Windows 3.1 on it. That's how I learned computers and everything about them that I know. I started programming in quick basic back then too.

Sounds very familiar! I used my first two computers (and all the calamities i caused them lol) to learn all the intricacies of DOS / Windows, and have been using it pretty much exclusively ever since. I always used to hate how Windows 3.11 would crash when coming out of full screen mode QuickBASIC. :banghead:



Now a lot of that good has been undone. I have a problem and the terminal didn't even cross my mind. I didn't start fooling with Linux till many years later... probably 10 years ago.

Hey, happens to the best of us! lol I'm only a fairly recent Linux user, and then only occasionally. Recent enough that I find myself of limited usefulness to the Linux veterans... :(


Now the only pc in the house is a derelict laptop with no hard drive and no cooling. It boots ubuntu from a flash reader and for cooling we sit it on an ice pack. Not making that up!

Reminds me of a co-worker of mine who cools his laptop with a bag of frozen vegetables. Corn cooling for the win!



This one we've got coming this week comes with Windows 8 and it's gonna be formatted almost before I turn it on. I wanna make sure it works good, make a restore disc and then wipe it for Windows 7 which I think is pretty nice. I game a lot so I have been partial to Windows and also 7 IS a good os, I don't care what anyone says about M$

Agreed, 7 is the best they ever managed to put together. The only version I'll run now. Seems like they keep flopping... XP was good, Vista sucked, 7 was great, 8 sucks... and so on.
 
So the issue just popped up again. I notice it easily because it makes my phone hot. Ran top in a terminal session and it shows 0% usage for all apps... weird. Notice I also posted about lock screen weirdness. My latest nandroid is before both of those issues so I may just restore it tonight.

You ever use freeBASIC merc? It's a free language whose syntax is based on quick basic. It can even compile old QB programs. But it has a lot of new features like OOP stuff, macros, preprocessor, etc.

All of the programs I've ever released online were written in it. I wrote an rpg engine, an extractor for a video game graphics format, a translator for the hymmnos language, a media player, a lyric typing game and something else... what was it lol

Anyway I think the project for freebasic is dead or dying but it's still really cool. If you've never checked it out you should. Typing this url on my phone so I hope it works:

http://www.freebasic.net
 
So the issue just popped up again. I notice it easily because it makes my phone hot. Ran top in a terminal session and it shows 0% usage for all apps... weird. Notice I also posted about lock screen weirdness. My latest nandroid is before both of those issues so I may just restore it tonight.

You ever use freeBASIC merc? It's a free language whose syntax is based on quick basic. It can even compile old QB programs. But it has a lot of new features like OOP stuff, macros, preprocessor, etc.

All of the programs I've ever released online were written in it. I wrote an rpg engine, an extractor for a video game graphics format, a translator for the hymmnos language, a media player, a lyric typing game and something else... what was it lol

Anyway I think the project for freebasic is dead or dying but it's still really cool. If you've never checked it out you should. Typing this url on my phone so I hope it works:

Official Website | FreeBASIC Programming Language

I think you have to scroll up to get the entire output of TOP, but I could be mistaken. PS may very well be better suited to this job though.

I've looked into FreeBASIC before, and they indeed did a great job getting QBASIC code running on Windows and such, but my only qualm is that there's no way to make a pure 16 bit executable with it. No matter, I'll just make my own! lol

I caught some videos of Lyric Hero, and not only is it a unique idea, but well executed too - seems like you have a good handle on the language. After everything settles down, I was thinking of inviting a couple folks from here who are DOS heads like myself to collaborate on the project with me, even if only for testing. With all your experience, I'll keep you in mind. :)
 
I think you have to scroll up to get the entire output of TOP, but I could be mistaken. PS may very well be better suited to this job though.

I've looked into FreeBASIC before, and they indeed did a great job getting QBASIC code running on Windows and such, but my only qualm is that there's no way to make a pure 16 bit executable with it. No matter, I'll just make my own! lol

I caught some videos of Lyric Hero, and not only is it a unique idea, but well executed too - seems like you have a good handle on the language. After everything settles down, I was thinking of inviting a couple folks from here who are DOS heads like myself to collaborate on the project with me, even if only for testing. With all your experience, I'll keep you in mind. :)


Awesome. The videos you've seen don't do it justice, lyric hero I mean. That's from really old versions. Search for "Blyss Sarania" on YouTube if you haven't already scoped me out lol. Look specifically at the LHMP markup example one. It's the latest version of that engine there is a video of. Both the media player and the game share the same base engine. The lyric hero videos are around version 1, the lhmp video is version 2. Sadly I lost most of my source code when I lost my website hosting 2 years ago because of no money. Same time my desktop died. There is an older version of my stuff on media fire... 1.8 version I think, plus my SNES style rpg engine, my translator and my slot machine game should all be there. I'll look later on my ice pack laptop lol.

Actually now that I think of it there might be a video of my spectrogram code in the media player... That would be the last version I coded if it's there.

Edit: yeah it's there, so the one showing that and the one showing the hymmnos markup are the latest ones. Sadly that code is gone...

Anyway the big diff in the lyric hero vids is that In the last version the visualization played under the game and the scoring was better and the whole thing smoother.

Btw the big complaint of that game on the FB forum is no one can type that fast...lol
 
Problem persists. Yeah I know you have to scroll up to see all of top btw. Here is a screenshot at the err... top of top... showing the err... current top processes as my cpu is locked to max:

screenshot-1373419308982_zps9f7e738e.png


Notice they all say 0% and top itself is number one.

PS doesn't provide anything more useful, actually less.
 
So I decided to take a look at it through adb on my ice pack laptop to see if it produced anything different. Low and behold I find a culprit... an ironic one:




And this is consistent... so it's actually part of the phandroid app that has gone amok it seems... guess I'll uninstall and reinstall and see what happens!

But seriously... ironic.
 
So I decided to take a look at it through adb on my ice pack laptop to see if it produced anything different. Low and behold I find a culprit... an ironic one:




And this is consistent... so it's actually part of the phandroid app that has gone amok it seems... guess I'll uninstall and reinstall and see what happens!

But seriously... ironic.

Try the tapatalk based one :)

https://play.google.com/store/apps/details?id=com.tapatalk.androidforumscom&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS50YXBhdGFsay5hbmRyb2lkZm9ydW1zY29tIl0.
 
Lmao I am totally doing that right this second! But it doesn't have the thanks button like the phandroid app(not the stand alone android forums one which is like identical to tapatalk).

it does, just tap on the post you wanna post your thanks on and it'll give you all your options
 
Awesome. The videos you've seen don't do it justice, lyric hero I mean. That's from really old versions. Search for "Blyss Sarania" on YouTube if you haven't already scoped me out lol.
...

Been there, scoped that. ;) :D



...
Anyway the big diff in the lyric hero vids is that In the last version the visualization played under the game and the scoring was better and the whole thing smoother.

So... you wrote code to basically "listen" live to the audio being played and generate a visualization accordingly? Nice :)



Btw the big complaint of that game on the FB forum is no one can type that fast...lol

And I was actually wondering about that! Like... what if someone tried rap music?

There. Is. No. Way. :eek:
 
Been there, scoped that. ;) :D





So... you wrote code to basically "listen" live to the audio being played and generate a visualization accordingly? Nice :)





And I was actually wondering about that! Like... what if someone tried rap music?

There. Is. No. Way. :eek:


The code uses the FMOD library to generate the visualization. Basically it pulls a 512 element array every time you query it. So you take the nyquist frequency of the sample and divide it by 512, then multiply by the element you are querying and you know what frequency you are at. The nyquist frequency = half the sampling rate so for CD quality it's 20500. That means each array element increases the frequency by about 40. So if you pull from element 89 you've got the waveform amplitude at 3563hz. (20500/512)*89

Now with that info obviously low frequencies are bass, high is treble. So you can assign one shape to bass and another to treble, or one color to each our what have you, that's how it works.

I can type over 100wpm with accuracy. But the problem is with small words that take so little time to sing that you can't get the two or three letters in and press space in time. Space is what submits the word. Also if you are typing a long word and fall behind it still doesn't enter till you push space so you get many bad scores. I was trying to come up with a more elegant way to do that last time I was working on it.

If you like this type of stuff this might interest you. The scoring is based on sometHing called Levenshtein distance, a fancy type of edit distance. I'm not gonna explain it all on my phone but it's like this. Compare these words:

Dog
Dig

The edit distance is 1. I.e. you have to make one edit to change one into the other. Basic edit distance tasks in to account deletions, substitutions, insertions. Levenshtein also add transposition.

Liek
Like

Standard edit distance would be 2. Delete the e between I and k and add it back to the end. But the levenshtein distance is 1: transpose the e and k.

Wiki it if you are interested. In my program I wrote the edit distance code but had major help with the levenshtein code.

Btw levenshtein distance is a big part of how spell checkers make suggestions. They find the words with the smallest levenshtein distance to what you typed.
 
Kind of related, I was wondering, I know some of us don't use the warp as a phone and I have seen some "tablet " roms but nothing new and as good as the recent efforts.

So if I want to remove or freeze apps to make the phone stop trying to connect to the sprint network and thus save that energy and memory usage, which ones do you guys think can be killed or removed permanently?

Sorry if I don't make much sense lol
 
The ril files, though you have to know what you're doing because if you mess it up then you'll be stuck with a miniature tablet forever
 
The ril files, though you have to know what you're doing because if you mess it up then you'll be stuck with a miniature tablet forever

But that's in a development tool? nothing manageable from within the phone?

I would not mind, since this phone only got one month of service, then a mini tablet usage.
 
Back
Top Bottom