一个用于 Android 的透明 ui-block 检测库(称为 BlockCanary)
中文 README # Android 性能监控器 一个用于 Android 的透明 ui-block 检测库,应用只需要一行代码即可设置。 这个命名是为了向伟大的库 LeakCanary 致敬, ui 相关代码是从 leakcanary 的 ui 部分修改而来。 - 1.5.0 添加可在调试模式中停止监控的上下文。 - 1.4.1 修复 bug。 - 1.4.0 修复 bug,在上下文中添加 onBlock 切換器。 - 1.3.1 启用标签和图标的配置。 - 1.3.0 添加白名单和关注包功能。 # 开始使用 你可以根据自己的喜好组装它们。 ```gradle dependencies { // most often used way, enable notification to notify block event compile 'com.github.markzhai:blockcanary-android:1.5.0'
// this way you only enable BlockCanary in debug package
// debugCompile 'com.github.markzhai:blockcanary-android:1.5.0'
// releaseCompile 'com.github.markzhai:blockcanary-no-op:1.5.0'
}
由于该库使用了 `getMainLooper().setMessageLogging()`, 因此请检查您是否在应用中设置了此项(相关问题 https://github.com/moduth/blockcanary/issues/27)。https://ephraimagba938.GitHub.io/reponame/
我写了一个新的卡顿监控项目,主要是支持在设备上直接查看卡顿的火焰图,感兴趣的可以看一下
徽标问题。
这个库希望有人能够维护一下
针对 Android 12 的应用程序的简单修复
android12 发生崩溃,PendingIntent 标志位需要进行适配
什么时候适配 Android 12?
[错误] Static fileIoExecutor 会导致线程泄漏和 StrictMode 违规
添加 append 模式以避免 getMainLooper().setMessageLogging() 发生冲突
如何保证捕获卡顿堆栈的准确性?