LeakCanary - 一个 Android/Java 内存泄漏检测库

jopen 9年前

LeakCanary 是一个用于Android和Java的内存泄漏检测库。

“A small leak will sink a great ship.” - Benjamin Franklin入门

In yourbuild.gradle:

 dependencies {     debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3' }

In yourApplicationclass:

public class ExampleApplication extends Application {      @Override public void onCreate() {      super.onCreate();      LeakCanary.install(this);    }  }

项目主页:http://www.open-open.com/lib/view/home/1431172567913