Test app performance without tools

Source: Internet
Author: User

1. Open command line execution, adb shell Dumpsys meminfo

2. Copy the command line output to a local text file to find the PID of the specified process. If you read more pid:28902

3. In the command line: adb shell

4. After entering the ADB shell, enter: Top | grep 28902. The resource consumption of the specified process is then displayed in real time

First column: PID-Process ID

Second column: PR-priority

Column three: CPU%-instantaneous CPU utilization

The fourth column: S-the state of the process, where s indicates hibernation, R is running, Z represents a zombie state, and N indicates that the process precedence value is negative.

Fifth column: #THR-the number of threads currently used by the program

Fifth column: Vss-virtual Set Size Virtual memory consumption (contains memory consumed by shared libraries)

Sixth column: Rss-resident Set Size actually uses physical memory (contains memory consumed by shared libraries)

Seventh column: Pcy-ooxx, don't know what

Eighth column: UID-User ID to run the current process

Nineth column: name-process Name

Test app performance without tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.