Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/leakcanary/DetectLeaksInterceptor

DetectLeaksInterceptor

fun interface DetectLeaksInterceptor

Decides whether to dump & analyze the heap to look for leaks in instrumentation tests. The implementation might block for a while to allow temporary leaks to be flushed out, as those aren’t that interesting to report and heap analysis increases test duration significantly.

Inheritors

AndroidDetectLeaksInterceptor

Functions

Name Summary
waitUntilReadyForHeapAnalysis [androidJvm]
abstract fun waitUntilReadyForHeapAnalysis(): HeapAnalysisDecision