有无输入指令
adb shell getevent lrt
磁盘信息
adb shell df -h 查看data分区
内存信息
adb shell cat /proc/meminfo | grep MemFree
adb shell dumpsys meminfo com.aaaa.systemservice(不跟就是所有的pss,rss等分布)
堆栈信息代码中
Log.d(TAG,"STATCK", new RuntimeException("mystack"));
#include <utils/CallStack.h>
android::CallStack stack(("mystack"));
trace信息
//java
adb shell kill -3 [pid] // Process.sendSignal(pid, Process.SIGNAL_QUIT)
//native
Process.sendSignal(pid, Process.SIGNAL_QUIT)
adb shell debuggerd -b 1017 >log.txt //Debug.dumpNativeBacktraceToFile(pid, tracesPath)
//kenel
adb shell cat /proc/[tid]/stack
WatchDog.dumpKernelStackTraces()