Android常用調試命令

來源:互聯網
上載者:User

標籤:android   style   blog   color   使用   io   ar   div   cti   

 

1、查看進程使用記憶體的情況

adb shell dumpsys meminfo <packagename>

例:

MY-MAC:~ xiaoyu$ adb shell dumpsys meminfo com.muzhiwan.marketApplications Memory Usage (kB):Uptime: 6918199 Realtime: 7614790** MEMINFO in pid 20390 [com.muzhiwan.market] **                         Shared  Private     Heap     Heap     Heap                   Pss    Dirty    Dirty     Size    Alloc     Free                ------   ------   ------   ------   ------   ------       Native       48       20       48     2736     2374      361       Dalvik     1110     8520      856    10056     8683     1373       Cursor        0        0        0                                  Ashmem        0        0        0                               Other dev        4       32        0                                .so mmap      123      840       80                               .jar mmap        0        0        0                               .apk mmap        9        0        0                               .ttf mmap        0        0        0                               .dex mmap        2        0        0                              Other mmap      237      348       72                                 Unknown     1384      796     1332                                   TOTAL     2917    10556     2388    12792    11057     1734  Objects               Views:        0         ViewRootImpl:        0         AppContexts:        4           Activities:        0              Assets:        3        AssetManagers:        3       Local Binders:        2        Proxy Binders:        9    Death Recipients:        0     OpenSSL Sockets:        0  SQL         MEMORY_USED:        0  PAGECACHE_OVERFLOW:        0          MALLOC_SIZE:        0   Asset Allocations    zip:/data/app/com.muzhiwan.market-1.apk:/resources.arsc: 449K

 

 

2、

3、

4、

5、

 

Android常用調試命令

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.