Android Common Debug commands

Source: Internet
Author: User

1. View the memory usage of the process

adb shell Dumpsys meminfo <packagename>

Cases:

my-mac:~xiaoyu$ adb shell dumpsys meminfo com.muzhiwan.marketApplications Memory Usage (KB): Uptime:6918199Realtime:7614790* * MeminfoinchPid20390[Com.muzhiwan.market] * *Shared Private Heap heap Pss Dirty Dirty Size Alloc Free------   ------   ------   ------   ------   ------Native -        -        -     2736     2374      361Dalvik1110     8520      856    10056     8683     1373Cursor0        0        0Ashmem0        0        0Other Dev4        +        0. So mmap123      840        the. Jar Mmap0        0        0. apk mmap9        0        0. TTF Mmap0        0        0. Dex Mmap2        0        0Other mmap237      348        theUnknown1384      796     1332 Total2917    10556     2388    12792    11057     1734Objects Views:0Viewrootimpl:0appcontexts:4Activities:0Assets:3Assetmanagers:3Local Binders:2Proxy Binders:9Death Recipients:0OpenSSL Sockets:0SQL memory_used:0Pagecache_overflow:0Malloc_size:0Asset Allocations Zip:/data/app/com.muzhiwan.market-1. apk:/resources.arsc:449k

2.

3.

4.

5.

Android Common Debug commands

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.