A tiny tool to analyze the launch time of Activity on Android.
Smooth is the user experience.
When using this tool in the apps, we could know how much time was cost in the follow steps: layout, draw and biz.
And a level toast shown after the page was launched.
Add the follow code in Application:
ActivityLaunchTimeAnalyzer.install(this);
It needs the log permission:
adb shell pm grant [package-name] android.permission.READ_LOGS
It works on Android 4.1+, and it needs the android.permission.READ_LOGS
The first run would not work after granting the permission, so killing the process and restart!
Copyright (C) 2016, Megatron King
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.