android 記憶體流失

來源:互聯網
上載者:User

標籤:nts   openssl   data   local   3.0   ase   binary   shm   apple   

native 記憶體流失 

 

adb shell dumpsys meminfo “packagename” -d

 

迴圈

 

while : ;do adb shell dumpsys meminfo “packagename” -d | grep "Native Heap"; sleep 1; done;

 

 

 

 

0000095573:~ xiaxing$ adb shell dumpsys meminfo “packagename” -d

Applications Memory Usage (kB):

Uptime: 9151889 Realtime: 9151889

 

** MEMINFO in pid 10657 [packagename] **

                   Pss  Private  Private  Swapped     Heap     Heap     Heap

                 Total    Dirty    Clean    Dirty     Size    Alloc     Free

                ------   ------   ------   ------   ------   ------   ------

  Native Heap    35784    35636        0        0    37712    36237     1474

  Dalvik Heap    34018    33784        0        0    33932    31281     2651

 Dalvik Other     1061     1056        0        0                           

        Stack       36       36        0        0                           

       Ashmem        2        0        0        0                           

    Other dev     7204        0     7204        0                           

     .so mmap     8061      332     2656        0                           

    .apk mmap      800        0        0        0                           

    .ttf mmap       66        0        0        0                           

    .dex mmap     8704     8592       80        0                           

    .oat mmap     7725        0     1232        0                           

    .art mmap     1951     1116        0        0                           

   Other mmap     1507        8      368        0                           

    GL mtrack    17896    17896        0        0                           

      Unknown     2116     2112        0        0                           

        TOTAL   126931   100568    11540        0    71644    67518     4125

 

 App Summary

                       Pss(KB)

                        ------

           Java Heap:    34900

         Native Heap:    35636

                Code:    12892

               Stack:       36

            Graphics:    17896

       Private Other:    10748

              System:    14823

 

               TOTAL:   126931      TOTAL SWAP (KB):        0

 

 Objects

               Views:       42         ViewRootImpl:        1

         AppContexts:        3           Activities:        1

              Assets:        6        AssetManagers:        2

       Local Binders:       29        Proxy Binders:       21

       Parcel memory:        8         Parcel count:       34

    Death Recipients:        0      OpenSSL Sockets:        0

 

 SQL

         MEMORY_USED:        0

  PAGECACHE_OVERFLOW:        0          MALLOC_SIZE:        0

 

 

 Asset Allocations

    zip:/data/app/com.baidu.aip.aigate-1/base.apk:/assets/facedetect.binary: 58K

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.