背景
Google开发新组件和AS新功能,支持卡顿检查
新版as[Bumblebee]支持卡顿检查
具体看官方文档 https://developer.android.com/studio/profile/jank-detection
划分11+ 和10-的区别,如果有设备建议11
新增卡顿工具JankStats
官方文档 https://developer.android.com/studio/profile/jankstats
https://developer.android.com/jetpack/androidx/releases/metrics#1.0.0-alpha01
具体demo地址:
https://github.com/android/performance-samples/blob/main/JankStatsSample/app/src/main/java/com/example/jankstats/JankLoggingActivity.kt
总结
总体来说是好的开始,Google开始重视了,接下里就是学习