Android - memory / processor usage

I have two Android apps that I have developed. I need to compare two applications for a project, and I'm trying to find tools that will allow me to capture data about applications such as using computing resources in terms of CPU / memory / data transfer, etc. Is it also possible to compare the different effects that applications will use when using the battery?

Thanks,

+6
source share
3 answers

To profile CPU usage in your application (for example, the percentage of time spent on individual methods), view traceview . This is the executable in your tools directory that comes with the Android SDK.

To use memory, you can use the Eclipse Memory Analyzer (MAT) (there is a separate option if you prefer a different IDE).

To use the battery, there is a project called PowerTutor that helps evaluate the power consumed by the processor, network interface, display, and GPS.

+10
source

Qualcomm also has an Android app profiling product, Trepn ™ Profiler .

From the official web page:

Trepn ™ Profiler is a diagnostic tool that allows you to profile the performance and power consumption of Android applications running on devices with Qualcomm® Snapdragon ™ processors. Its design will help you optimize your code for:

CPU usage and frequency memory statistics (virtual and physical) network usage (cellular and Wi-Fi) 

As stated in the description, this is only for Qualcomm® Snapdragon ™ processors .

0
source

I used Little Eye for these purposes. It provides detailed information on power consumption, CPU utilization, memory and WiFi usage and generates excellent reports. Everything is easy, clear and convenient.

However, this can be a bit unpleasant if the application loads the device heavily (!).

-1
source

Source: https://habr.com/ru/post/912237/


All Articles