简体   繁体   中英

Comparing resource use of different methods

I often doubt between two or more forms of doing something. In Android, I try to do it the way more efficent, the way in which the processor uses less resources and RAM. How I can measure the cpu and RAM consumption of an application in order to compare different methods?

You could profile your application. The Android SDK comes with traceview and the instructions are pretty good. You could also watch memory allocations from DDMS .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM