1. 首页
  2. 数据库
  3. 其它
  4. LeakCanary源码解析之检测篇

LeakCanary源码解析之检测篇

上传者: 2021-02-01 01:28:25上传 PDF文件 95.78KB 热度 16次
源码分析基于:1.6.3 对于Android开发者而言,内存泄漏是一种很常见的问题。LeakCanary就是捕获内存泄漏的一把利器。我们在这里就分析一下它的工作原理。 一、使用方法 使用方法就是我们在Application中添加代码: if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not onStart your app in this proces
下载地址
用户评论