CPU
top
命令查看进程CPU使用情况cat /proc/cpuinfo
-
获取线程调用栈
- kill -3 指定的进程,会生成trace文件在/data/anr/traces.txt,提前设置好该文件的权限信息
- Android Studio自带的get Threaddump
method trace
Memory
- heap dump
- dumpsys meminfo packagename
- gc
- allocate trace
文件描述符泄漏
ulimits
/proc/${pid}/fd
IO
网络
端口
netstat
tcpdump
iptables
ANR
thread dump
method trace