com.squareup.leakcanary.RefWatcher类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中com.squareup.leakcanary.RefWatcher类的一些代码示例,展示了RefWatcher类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RefWatcher类的具体详情如下:
包路径:com.squareup.leakcanary.RefWatcher
类名称:RefWatcher

RefWatcher介绍

[英]No-op implementation of RefWatcher for release builds. Please use RefWatcher#DISABLED.
[中]发布版本中没有RefWatcher的op实现。请使用RefWatcher#DISABLED。

代码示例

代码示例来源:origin: square/leakcanary

/**
 * Identical to {@link #watch(Object, String)} with an empty string reference name.
 *
 * @see #watch(Object, String)
 */
public void watch(Object watchedReference) {
 watch(watchedReference, "");
}

代码示例来源:origin: square/leakcanary

@Override public final void testFinished(Description description) {
 detectLeaks();
 LeakCanary.installedRefWatcher().clearWatchedReferences();
}

代码示例来源:origin: square/leakcanary

@Override public Retryable.Result run() {
  return ensureGone(reference, watchStartNanoTime);
 }
});

代码示例来源:origin: square/leakcanary

return new RefWatcher(watchExecutor, debuggerControl, gcTrigger, heapDumper, heapDumpListener,
  heapDumpBuilder);

代码示例来源:origin: com.netease.cloudmusic.leakwatcher/leak-watcher

return new RefWatcher(watchExecutor, debuggerControl, gcTrigger, heapDumper, heapDumpListener,
  excludedRefs);

代码示例来源:origin: square/leakcanary

@Override
 public void onFragmentDestroyed(FragmentManager fm, Fragment fragment) {
  refWatcher.watch(fragment);
 }
};

代码示例来源:origin: square/leakcanary

@After public void tearDown() {
 LeakCanary.installedRefWatcher().clearWatchedReferences();
}

代码示例来源:origin: com.netease.cloudmusic.leakwatcher/leak-watcher

@Override public Retryable.Result run() {
  return ensureGone(reference, watchStartNanoTime);
 }
});

代码示例来源:origin: square/leakcanary

@Override public void onFragmentDestroyed(FragmentManager fm, Fragment fragment) {
  refWatcher.watch(fragment);
 }
};

代码示例来源:origin: square/leakcanary

@After public void tearDown() {
 LeakCanary.installedRefWatcher().clearWatchedReferences();
}

代码示例来源:origin: square/leakcanary

@Override public void onActivityDestroyed(Activity activity) {
  refWatcher.watch(activity);
 }
};

代码示例来源:origin: square/leakcanary

@Before public void setUp() {
 LeakCanary.installedRefWatcher().clearWatchedReferences();
}

代码示例来源:origin: square/leakcanary

@Override public void onFragmentViewDestroyed(FragmentManager fm, Fragment fragment) {
 View view = fragment.getView();
 if (view != null) {
  refWatcher.watch(view);
 }
}

代码示例来源:origin: square/leakcanary

@Before public void setUp() {
 LeakCanary.installedRefWatcher().clearWatchedReferences();
}

代码示例来源:origin: square/leakcanary

@Override public void onFragmentViewDestroyed(FragmentManager fm, Fragment fragment) {
 View view = fragment.getView();
 if (view != null) {
  refWatcher.watch(view);
 }
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@Override
 public void onDestroy() {
  super.onDestroy();
  RefWatcher refWatcher = MyApp.getRefWatcher();
  refWatcher.watch(this);
 }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
public void onDestroy() {
  Log.i(TAG, "Conductor: onDestroy() called");
  super.onDestroy();
  if (hasExited) {
    DemoApplication.refWatcher.watch(this);
  }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
public void onDestroy() {
  super.onDestroy();
  if (hasExited) {
    DemoApplication.refWatcher.watch(this);
  }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
public void onDestroy() {
  super.onDestroy();
  Log.i(TAG, "onDestroy() called");
  if (hasExited) {
    DemoApplication.refWatcher.watch(this);
  }
}

代码示例来源:origin: bluelinelabs/Conductor

@Override
public void onDestroy() {
  super.onDestroy();
  Log.i(TAG, "onDestroy() called");
  if (hasExited) {
    DemoApplication.refWatcher.watch(this);
  }
}

相关文章

微信公众号

最新文章

更多