private void initializeLeakDetection() { if (BuildConfig.DEBUG) { LeakCanary.install(this); } } }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); } }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); } }
@Override public void onCreate() { super.onCreate(); refWatcher = LeakCanary.install(this); }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process. return; } LeakCanary.install(this); } }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { return; } LeakCanary.install(this); } }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // LeakCanary is processing a heap dump here; please do not disturb! return; } LeakCanary.install(this); // do your normal initialization work here } }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // LeakCanary is processing a heap dump here; please do not disturb! return; } LeakCanary.install(this); // do your normal initialization work here } }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process. return; } LeakCanary.install(this); // Normal app init code... } }
private void configureLeakCanary() { if (LeakCanary.isInAnalyzerProcess(this)) { return; } LeakCanary.install(this); } }
@Override public void onCreate() { super.onCreate(); if (_instance == null) { LeakCanary.install(this); _instance = this; Logger.setDebug(BuildConfig.DEBUG); } }
@Override public void onCreate() { super.onCreate(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process. return; } LeakCanary.install(this); } }
protected void setupLeakCanary() { enabledStrictMode(); if (LeakCanary.isInAnalyzerProcess(this)) { // This process is dedicated to LeakCanary for heap analysis. // You should not init your app in this process. return; } LeakCanary.install(this); }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); OrbotHelper.get(this).init(); } }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); OrbotHelper.get(this).init(); } }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); OrbotHelper.get(this).init(); } }
@Override public void onCreate() { super.onCreate(); LeakCanary.install(this); OrbotHelper.get(this).init(); } }
@Override public void onCreate() { super.onCreate(); refWatcher = LeakCanary.install(this); Timber.plant(new Timber.DebugTree()); }
@Override public void onCreate() { super.onCreate(); refWatcher = LeakCanary.install(this); sInstance = this; initCompoent(); AppUtils.init(this); CrashHandler.getInstance().init(this); initPrefs(); initNightMode(); //initHciCloud(); }
private void init() { //初始化Leak内存泄露检测工具 LeakCanary.install(this); //初始化Stetho调试工具 Stetho.initialize( Stetho.newInitializerBuilder(this) .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this)) .build()); }