Comparing resource use of different methods
-
18-02-2021 - |
문제
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.
제휴하지 않습니다 StackOverflow