Android中提供的dumpsys工具,用于分析Android性能。Android系统中,列出所有可用的dumpsys指令。
使用dumpsys查看memory信息:
shell@aeon6735m_65c_s_l1:/ $ dumpsys meminfomeminfo dump options: [-a] [-d] [-c] [--oom] [process] -a: include all available information for each process. -d: include dalvik details when dumping process details. -c: dump in a compact machine-parseable representation. --oom: only show processes organized by oom adj. --local: only collect details locally, don't call process. --package: interpret process arg as package, dumping all processes that have loaded that package.If [process] is specified it can be the name orpid of a specific process to dump.
Dumpsys常用指令: