역시(?) google groups에 찾아보면 뭔가가 나온다... 다만 뭐라 물어볼지가 문제...-_-;
1-1) command promp> adb shell procrank
( Uss is the amount of memory private to your app,
Pss includes the shared memory weighted across the number of processes it is shared in )
(다음과 같이 나온다... 시간이 좀 걸리네...)
PID Vss Rss Pss Uss cmdline
53 37100K 36500K 17826K 13784K system_server
104 26008K 26008K 8365K 5344K android.process.acore
30 25252K 25252K 8082K 5420K zygote
101 22108K 22108K 5922K 3672K com.android.phone
99 20568K 20568K 4705K 2968K jp.co.omronsoft.openwnn
478 19840K 19840K 4492K 2876K costep.test
188 19572K 19572K 4094K 2448K com.android.email
134 19356K 19356K 4006K 2340K com.android.mms
108 19120K 19120K 3947K 2136K com.android.settings
156 19192K 19192K 3930K 2392K android.process.media
180 18592K 18592K 3321K 1740K com.android.alarmclock
212 17348K 17348K 2815K 1448K com.svox.pico
31 3272K 3272K 956K 632K /system/bin/mediaserver
37 844K 844K 829K 828K /sbin/adbd
497 492K 492K 304K 296K procrank
29 728K 728K 251K 216K /system/bin/rild
1 204K 204K 185K 184K /init
27 380K 380K 150K 140K /system/bin/vold
35 336K 336K 132K 124K /system/bin/qemud
75 328K 328K 119K 108K logcat
33 404K 404K 105K 88K /system/bin/keystore
32 316K 316K 98K 88K /system/bin/installd
496 324K 324K 94K 68K /system/bin/sh
74 324K 324K 94K 68K /system/bin/sh
34 324K 324K 94K 68K /system/bin/sh
45 308K 308K 93K 84K /system/bin/qemu-props
26 260K 260K 91K 84K /system/bin/servicemanager
25 308K 308K 90K 68K /system/bin/sh
28 248K 248K 83K 76K /system/bin/debuggerd
1-2) command prompt > adb shell dumpsys meminfo <processname>
(다음과 같이 나온다)
** MEMINFO in pid 101 [com.android.phone] **
native dalvik other total
size: 3640 3719 N/A 7359
allocated: 3616 3161 N/A 6777
free: 23 558 N/A 581
(Pss): 1103 2894 2120 6117
(shared dirty): 1760 4776 792 7328
(priv dirty): 952 1392 880 3224
Objects
Views: 0 ViewRoots: 0
AppContexts: 5 Activities: 0
Assets: 3 AssetManagers: 3
Local Binders: 29 Proxy Binders: 42
Death Recipients: 1
OpenSSL Sockets: 0
SQL
heap: 176 dbFiles: 0
numPagers: 2 inactivePageKB: 25
activePageKB: 0
"Analyzing the memory usage of your Android application"
( '10-01-04 : 아직은 이해를 못하고 있는 java의 hprof... -_-; )
3) target은 방법이 좀 어렵겠지만, emul에서는...
C:\android-sdk-windows\tools> mode con: cols=120
( 보기 편하게 column을 좀 넓힌다)
C:\android-sdk-windows\tools> adb shell
# ps
또는
# top
(다 되는지는 모르겠네... -_-; )
* 우째 내가 지금 뭔가를 하려는 것이(정리? 아니면...) "blog"로 되려나 모르겠네...maybe wiki ?