开发者

Android - Is there an SDK way to find out the exact amount of memory consumed by a process identified by its pid?

I would like to 开发者_Go百科check the memory consumption of each running processes individually, cat /proc//statm is ok, but opening a shell for each check is time consuming, and maybe not the best way. any advices how to do it with the SDK?


The short answer is "You can do it, but it's very complicated". Have a look at this similar question, where one of the Android software engineers gives a long discussion of the issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜