https://github.com/square/leakcanary
dependencies { debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.2' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.2' }
LeakCanary.install(XXX.this);
LeakCanaryInternals.setEnabled(XXX.this, DisplayLeakActivity.class, false);
不显示leakcanary快捷方式。