ActivityRefWatcher that will make sure the activities are not leaking
after they have been destroyed.RefWatcherBuilder with appropriate Android defaults.WatchExecutor suitable for watching Android reference leaks.RefWatcher instance and starts watching activity references (on ICS+).DisplayLeakActivity.RefWatcher that works out of the box, and starts watching activity
references (on ICS+).HeapAnalyzerService, which is
a different process than the normal app process.AbstractAnalysisResultService to listen to analysis results.RefWatcher with appropriate Android defaults.RefWatcher with a AndroidHeapDumper that has a custom LeakDirectoryProvider, then you should also call this method to make sure the activity in
charge of displaying leaks can find those on the file system.RefWatcher should wait until it checks if a
tracked object has been garbage collected.