性能分析

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,得到三列

posted @ 2017-06-09 10:20  风少🌻  阅读(176)  评论(0编辑  收藏  举报