Saturday, September 10, 2011

Re: [android-developers] Is there some APIs to monitor the RAM/CPU utilized by another app?

On Sat, Sep 10, 2011 at 2:21 PM, Jim Graham <spooky130u@gmail.com> wrote:
> Ok, I'm confused now (so what's new?)....  What, then, are all of the
> apps that list system memory usage, both total and per app, doing to
> get the information?

http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813

Apps are probably using various Linux values out of /proc/ and hoping
they are doing it correctly, that the results will be available on all
devices, etc. This is not part of the Android SDK and there are no
guarantees here.

> Same question for cpu usage (total and per app)....

See above /proc/ note.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment