5LeakCanary2

Procedure

https://square.github.io/leakcanary/fundamentals-how-leakcanary-works/

graph TB
Procedure-->|useReferenceQueue|Detect(Detecting retained objects.)
Procedure-->|Debug.dump|Dump(Dumping the heap.)
Procedure-->|Shark|Analyze(Analyzing the heap.)
Procedure-->category(Categorizing leaks.)

Module依赖

graph TB
leakcanary-android-sample-->leakcanary-android
leakcanary-android-->leakcanary-android-core