内存分析三个procrank、dumpsys meminfo、top命令
感觉top最好用
例子:终端输入:top -H|grep 3158
Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -s sort_column ] [ -t ] [ -h ]
-m num Maximum number of processes to display.
-n num Updates to show before exiting.
-d num Seconds to wait between updates.
-s col Column to sort by (cpu,vss,rss,thr).
-H Show threads instead of processes.
-h Display this help screen.
PID TID USER PR NI CPU% S VSS RSS PCY Thread Proc
3158 3158 system 20 0 0% S 947192K 68056K bg om.tcl.tvweishi com.tcl.tvweishi
3158 3164 system 29 9 0% S 947192K 68056K bg Jit thread pool com.tcl.tvweishi
3158 3165 system 20 0 0% S 947192K 68056K bg Signal Catcher com.tcl.tvweishi
3158 3166 system 20 0 0% S 947192K 68056K bg JDWP com.tcl.tvweishi
3158 3167 system 20 0 0% S 947192K 68056K bg ReferenceQueueD com.tcl.tvweishi
3158 3168 system 20 0 0% S 947192K 68056K bg FinalizerDaemon com.tcl.tvweishi
3158 3169 system 20 0 0% S 947192K 68056K bg FinalizerWatchd com.tcl.tvweishi
3158 3170 system 20 0 0% S 947192K 68056K bg HeapTaskDaemon com.tcl.tvweishi
3158 3171 system 20 0 0% S 947192K 68056K fg Binder:3158_1 com.tcl.tvweishi
3158 3172 system 20 0 0% S 947192K 68056K fg Binder:3158_2 com.tcl.tvweishi
3158 3173 system 20 0 0% S 947192K 68056K bg Profile Saver com.tcl.tvweishi
3158 3179 system 20 0 0% S 947192K 68056K bg Thread-3 com.tcl.tvweishi
3158 3180 system 20 0 0% S 947192K 68056K bg TManagerInit com.tcl.tvweishi
3158 3181 system 20 0 0% S 947192K 68056K bg Thread-3 com.tcl.tvweishi
终端输入:
top -H|grep com.tcl.tv
2089 2089 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2096 u0_a26 29 9 0% S 1225444K 73064K fg Jit thread pool com.tcl.tv.jtq:remote
2089 2103 u0_a26 20 0 0% S 1225444K 73064K fg Signal Catcher com.tcl.tv.jtq:remote
2089 2104 u0_a26 20 0 0% S 1225444K 73064K fg JDWP com.tcl.tv.jtq:remote
2089 2107 u0_a26 20 0 0% S 1225444K 73064K fg ReferenceQueueD com.tcl.tv.jtq:remote
2089 2108 u0_a26 20 0 0% S 1225444K 73064K fg FinalizerDaemon com.tcl.tv.jtq:remote
2089 2109 u0_a26 20 0 0% S 1225444K 73064K fg FinalizerWatchd com.tcl.tv.jtq:remote
2089 2110 u0_a26 20 0 0% S 1225444K 73064K fg HeapTaskDaemon com.tcl.tv.jtq:remote
2089 2111 u0_a26 20 0 0% S 1225444K 73064K fg Binder:2089_1 com.tcl.tv.jtq:remote
2089 2112 u0_a26 20 0 0% S 1225444K 73064K fg Binder:2089_2 com.tcl.tv.jtq:remote
2089 2114 u0_a26 20 0 0% S 1225444K 73064K fg Profile Saver com.tcl.tv.jtq:remote
2089 2121 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2122 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2123 u0_a26 20 0 0% S 1225444K 73064K fg TManagerInit com.tcl.tv.jtq:remote
2089 2124 u0_a26 20 0 0% S 1225444K 73064K fg AtvThread com.tcl.tv.jtq:remote
2089 2128 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2130 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2132 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2470 2470 system 20 0 0% S 938060K 53156K bg l.tvhealthcheck com.tcl.tvhealthcheck
2470 2475 system 29 9 0% S 938060K 53156K bg Jit thread pool com.tcl.tvhealthcheck
2470 2477 system 20 0 0% S 938060K 53156K bg Signal Catcher com.tcl.tvhealthcheck
2470 2478 system 20 0 0% S 938060K 53156K bg JDWP com.tcl.tvhealthcheck
2470 2479 system 20 0 0% S 938060K 53156K bg ReferenceQueueD com.tcl.tvhealthcheck
2470 2480 system 20 0 0% S 938060K 53156K bg FinalizerDaemon com.tcl.tvhealthcheck
2470 2481 system 20 0 0% S 938060K 53156K bg FinalizerWatchd com.tcl.tvhealthcheck
2470 2482 system 20 0 0% S 938060K 53156K bg HeapTaskDaemon com.tcl.tvhealthcheck
2470 2483 system 20 0 0% S 938060K 53156K fg Binder:2470_1 com.tcl.tvhealthcheck
2470 2484 system 20 0 0% S 938060K 53156K fg Binder:2470_2 com.tcl.tvhealthcheck
2470 2485 system 20 0 0% S 938060K 53156K bg Profile Saver com.tcl.tvhealthcheck
3158 3158 system 20 0 0% S 947192K 68320K bg om.tcl.tvweishi com.tcl.tvweishi
3158 3164 system 29 9 0% S 947192K 68320K bg Jit thread pool com.tcl.tvweishi
3158 3165 system 20 0 0% S 947192K 68320K bg Signal Catcher com.tcl.tvweishi
3158 3166 system 20 0 0% S 947192K 68320K bg JDWP com.tcl.tvweishi
3158 3167 system 20 0 0% S 947192K 68320K bg ReferenceQueueD com.tcl.tvweishi
3158 3168 system 20 0 0% S 947192K 68320K bg FinalizerDaemon com.tcl.tvweishi
3158 3169 system 20 0 0% S 947192K 68320K bg FinalizerWatchd com.tcl.tvweishi
3158 3170 system 20 0 0% S 947192K 68320K bg HeapTaskDaemon com.tcl.tvweishi
3158 3171 system 20 0 0% S 947192K 68320K fg Binder:3158_1 com.tcl.tvweishi
3158 3172 system 20 0 0% S 947192K 68320K fg Binder:3158_2 com.tcl.tvweishi
3158 3173 system 20 0 0% S 947192K 68320K bg Profile Saver com.tcl.tvweishi
3158 3179 system 20 0 0% S 947192K 68320K bg Thread-3 com.tcl.tvweishi
3158 3180 system 20 0 0% S 947192K 68320K bg TManagerInit com.tcl.tvweishi
3158 3181 system 20 0 0% S 947192K 68320K bg Thread-3 com.tcl.tvweishi
3158 3182 system 20 0 0% S 947192K 68320K bg AtvThread com.tcl.tvweishi
感觉top最好用
例子:终端输入:top -H|grep 3158
Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -s sort_column ] [ -t ] [ -h ]
-m num Maximum number of processes to display.
-n num Updates to show before exiting.
-d num Seconds to wait between updates.
-s col Column to sort by (cpu,vss,rss,thr).
-H Show threads instead of processes.
-h Display this help screen.
PID TID USER PR NI CPU% S VSS RSS PCY Thread Proc
3158 3158 system 20 0 0% S 947192K 68056K bg om.tcl.tvweishi com.tcl.tvweishi
3158 3164 system 29 9 0% S 947192K 68056K bg Jit thread pool com.tcl.tvweishi
3158 3165 system 20 0 0% S 947192K 68056K bg Signal Catcher com.tcl.tvweishi
3158 3166 system 20 0 0% S 947192K 68056K bg JDWP com.tcl.tvweishi
3158 3167 system 20 0 0% S 947192K 68056K bg ReferenceQueueD com.tcl.tvweishi
3158 3168 system 20 0 0% S 947192K 68056K bg FinalizerDaemon com.tcl.tvweishi
3158 3169 system 20 0 0% S 947192K 68056K bg FinalizerWatchd com.tcl.tvweishi
3158 3170 system 20 0 0% S 947192K 68056K bg HeapTaskDaemon com.tcl.tvweishi
3158 3171 system 20 0 0% S 947192K 68056K fg Binder:3158_1 com.tcl.tvweishi
3158 3172 system 20 0 0% S 947192K 68056K fg Binder:3158_2 com.tcl.tvweishi
3158 3173 system 20 0 0% S 947192K 68056K bg Profile Saver com.tcl.tvweishi
3158 3179 system 20 0 0% S 947192K 68056K bg Thread-3 com.tcl.tvweishi
3158 3180 system 20 0 0% S 947192K 68056K bg TManagerInit com.tcl.tvweishi
3158 3181 system 20 0 0% S 947192K 68056K bg Thread-3 com.tcl.tvweishi
终端输入:
top -H|grep com.tcl.tv
2089 2089 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2096 u0_a26 29 9 0% S 1225444K 73064K fg Jit thread pool com.tcl.tv.jtq:remote
2089 2103 u0_a26 20 0 0% S 1225444K 73064K fg Signal Catcher com.tcl.tv.jtq:remote
2089 2104 u0_a26 20 0 0% S 1225444K 73064K fg JDWP com.tcl.tv.jtq:remote
2089 2107 u0_a26 20 0 0% S 1225444K 73064K fg ReferenceQueueD com.tcl.tv.jtq:remote
2089 2108 u0_a26 20 0 0% S 1225444K 73064K fg FinalizerDaemon com.tcl.tv.jtq:remote
2089 2109 u0_a26 20 0 0% S 1225444K 73064K fg FinalizerWatchd com.tcl.tv.jtq:remote
2089 2110 u0_a26 20 0 0% S 1225444K 73064K fg HeapTaskDaemon com.tcl.tv.jtq:remote
2089 2111 u0_a26 20 0 0% S 1225444K 73064K fg Binder:2089_1 com.tcl.tv.jtq:remote
2089 2112 u0_a26 20 0 0% S 1225444K 73064K fg Binder:2089_2 com.tcl.tv.jtq:remote
2089 2114 u0_a26 20 0 0% S 1225444K 73064K fg Profile Saver com.tcl.tv.jtq:remote
2089 2121 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2122 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2123 u0_a26 20 0 0% S 1225444K 73064K fg TManagerInit com.tcl.tv.jtq:remote
2089 2124 u0_a26 20 0 0% S 1225444K 73064K fg AtvThread com.tcl.tv.jtq:remote
2089 2128 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2130 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2089 2132 u0_a26 20 0 0% S 1225444K 73064K fg l.tv.jtq:remote com.tcl.tv.jtq:remote
2470 2470 system 20 0 0% S 938060K 53156K bg l.tvhealthcheck com.tcl.tvhealthcheck
2470 2475 system 29 9 0% S 938060K 53156K bg Jit thread pool com.tcl.tvhealthcheck
2470 2477 system 20 0 0% S 938060K 53156K bg Signal Catcher com.tcl.tvhealthcheck
2470 2478 system 20 0 0% S 938060K 53156K bg JDWP com.tcl.tvhealthcheck
2470 2479 system 20 0 0% S 938060K 53156K bg ReferenceQueueD com.tcl.tvhealthcheck
2470 2480 system 20 0 0% S 938060K 53156K bg FinalizerDaemon com.tcl.tvhealthcheck
2470 2481 system 20 0 0% S 938060K 53156K bg FinalizerWatchd com.tcl.tvhealthcheck
2470 2482 system 20 0 0% S 938060K 53156K bg HeapTaskDaemon com.tcl.tvhealthcheck
2470 2483 system 20 0 0% S 938060K 53156K fg Binder:2470_1 com.tcl.tvhealthcheck
2470 2484 system 20 0 0% S 938060K 53156K fg Binder:2470_2 com.tcl.tvhealthcheck
2470 2485 system 20 0 0% S 938060K 53156K bg Profile Saver com.tcl.tvhealthcheck
3158 3158 system 20 0 0% S 947192K 68320K bg om.tcl.tvweishi com.tcl.tvweishi
3158 3164 system 29 9 0% S 947192K 68320K bg Jit thread pool com.tcl.tvweishi
3158 3165 system 20 0 0% S 947192K 68320K bg Signal Catcher com.tcl.tvweishi
3158 3166 system 20 0 0% S 947192K 68320K bg JDWP com.tcl.tvweishi
3158 3167 system 20 0 0% S 947192K 68320K bg ReferenceQueueD com.tcl.tvweishi
3158 3168 system 20 0 0% S 947192K 68320K bg FinalizerDaemon com.tcl.tvweishi
3158 3169 system 20 0 0% S 947192K 68320K bg FinalizerWatchd com.tcl.tvweishi
3158 3170 system 20 0 0% S 947192K 68320K bg HeapTaskDaemon com.tcl.tvweishi
3158 3171 system 20 0 0% S 947192K 68320K fg Binder:3158_1 com.tcl.tvweishi
3158 3172 system 20 0 0% S 947192K 68320K fg Binder:3158_2 com.tcl.tvweishi
3158 3173 system 20 0 0% S 947192K 68320K bg Profile Saver com.tcl.tvweishi
3158 3179 system 20 0 0% S 947192K 68320K bg Thread-3 com.tcl.tvweishi
3158 3180 system 20 0 0% S 947192K 68320K bg TManagerInit com.tcl.tvweishi
3158 3181 system 20 0 0% S 947192K 68320K bg Thread-3 com.tcl.tvweishi
3158 3182 system 20 0 0% S 947192K 68320K bg AtvThread com.tcl.tvweishi