leakcanary-android-instrumentation / leakcanary / InstrumentationLeakDetector / detectLeaks

detectLeaks

fun detectLeaks(): InstrumentationLeakDetector.Result

Looks for retained objects, triggers a heap dump if needed and performs an analysis.