adb shell am start -W packagename/activity,eg:adb shell am start -W com.tencent.mm/.ui.LauncherUI,显示的结果中,thisTime和totalTime的含义分别为:
thisTime: just current activity launched time
totalTime:the activity you started may be on the bottom of activity stack. So it refers to the total time from activity searching to current activity launched. inal long thisTime = curTime - displayStartTime; final long totalTime = stack.mLaunchStartTime != 0? (curTime - stack.mLaunchStartTime) : thisTime;
讯飞Android应用性能测试工具:iTest
Android Studio-Android Monitor-Memory/CPU | GPU通过观测程序运行过程中的内存状态可以粗略地检测到哪些界面存在内存泄漏、哪些地方存在内存抖动(内存抖动时可能触发GC,导致程序出现卡顿的现象)、优化效果等。 |
讯飞Android应用性能测试工具:iTest
腾讯开发的GT
Android 5.0原生系统设置中的开发者模式,里面内置了一系列的性能测试工具,可以在程序运行的过程中测试各界面显示的效率、布局的性能问题、内存问题、ANR等问题。