Android App Performance test

Source: Internet
Author: User

One, memory

1. View maximum memory limit for a single app app

Command:adb shell "Getprop|grep heapgrowthlimit"
128M is the maximum memory limit for a single app, assuming that  PSS of the Dalvik Heap is greater than 128. It will report a memory overflow .
2. Monitor an app's memory
COMMAND:ADB Shell Dumpsys Meminfo com.meizu.mstore
C:\USERS\HUJIACHUN>ADB Shell Dumpsys meminfo com.meizu.mstoreApplications Memory Usage (KB): uptime:5159608 Realtime : 5159608** meminfo in PID 13914 [Com.meizu.mstore] **                  &NBSP ;  Pss  private  private  swapped     heap     heap     heap                 total    dirty    clean    dirty     Siz  E    alloc     free               ------ ------  ------ ------ ------ ------ ------  Native Heap        0   &NBS P    0        0        0    28672    18939   &NBS P 9732  Dalvik Heap    45029    44068        0        0 &NB Sp  60986 &nbsP  56981     4005 dalvik other      680      680       &NBS  p;0       60        Stack      492      492        0       36    Other dev        6        0 & nbsp      4        0     .so mmap     2454      172      284     1728    apk mmap      509        0 &NB Sp    228        0    TTF mmap      854        0      464        0   . Dex mmap     6240         0     6236        0   . Oat mmap     5925        0 & nbsp   2564        0   . Art mmap     2951     1748      716 &NB Sp      8   other mmap      137        4      104        0   egl mtrack    14960    14960        0 &NB Sp      0    GL mtrack    59264    59264        0   &NB Sp    0      Unknown    16331    16256        0   &NBSP ;  816        Total   155832   137644    10600     2648     89658    75920    13737 Objects               views: &nbs P   1242         Viewrootimpl:        1         appcon Texts:        4           activities:        1    &N Bsp         Assets:        4        assetmanagers:     & nbsp  4       local binders:              proxy binders:       29       parcel Memory:               Parcel count  :       60    death Recipients:        1      OPENSSL Sockets:        0 SQL         memory_used:      430  PAGECAC He_overflow:      116          malloc_size:       62 databases       PGSZ     Dbsz   Lookaside (b)          cache  dbname&nbsp ;   &NBSP    4       210/52/9                    /D ata/data/com.meizu.mstore/databases/usagestats.db         4      ,   & nbsp         0/42/1          /data/data/com.meizu.mstore/databases/download_ task.db         4                   (  &NB) Sp     1/43/2  /data/data/com.meizu.mstore/databases/download_app.db         4 & nbsp                 0/42/1          /data/data/com.meiz u.mstore/databases/mstore_recommend_db
 The PSS value of Dalvik Heap can be obtained by filtering information, real-time monitoring
Second, the CPU
  command:adb Shell" Dumpsys cpuinfo |grep com.meizu.mstore " 
  c:\users\hujiachun>adb Shell" Dumpsys cpuinfo |grep Com.meizu.mstore "   1.3% 18957/com.meizu.mstore:1% user + 0.2% kernel/faults:171 minor   
1.3% is total CPU consumption
  user is consumption   
    
  kernel is kernel consumption   



Android App Performance test

Related Article

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.