CPU
top
命令查看進程CPU使用情況cat /proc/cpuinfo
-
獲取線程調(diào)用棧
- kill -3 指定的進程呐矾,會生成trace文件在/data/anr/traces.txt比驻,提前設(shè)置好該文件的權(quán)限信息
- Android Studio自帶的get Threaddump
method trace
Memory
- heap dump
- dumpsys meminfo packagename
- gc
- allocate trace
文件描述符泄漏
ulimits
/proc/${pid}/fd
IO
網(wǎng)絡(luò)
端口
netstat
tcpdump
iptables
ANR
thread dump
method trace