性能分析

Android 性能分析工具dumpsys的使用  http://blog.csdn.net/androiddevelop/article/details/37689339

adb logcat -v threadtime -b events,在结果中查找到 activity_launch_time,取第一个时间

adb shell am start -W -n packageMame/mainactivity

adb shell dumpsys meminfo

adb shell dumpsys cpuinfo

adb shell dumpsys cpuinfo packName

adb shell top| grep package name(linux环境)
adb shell top|findstr package name (windows环境)

先操作手机,然后adb shell dumpsys gfxinfo packageName,得到三列

原文地址:https://www.cnblogs.com/ericazy/p/6970670.html