how to get memory usage and cpu usage by application?

后端 未结 4 731
耶瑟儿~
耶瑟儿~ 2021-02-09 16:23

I found this code to get overall cpu usage. is this possible to convert this to tell cpu usage by process? Is there any API by which we can get CPU or Memory usage of android?

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 17:12

    While Running your application, Run the DDMS tool which is present in Android-sdk\tools folder. Where you will get the complete details about all the running process. If you have debug enabled Android Device, then you can debug even from the device by connecting it to the system.

提交回复
热议问题