main

square/leakcanary

Last updated at: 29/12/2023 09:37

HeapAnalysisInterceptor.kt

TLDR

The HeapAnalysisInterceptor is a functional interface that defines a single method intercept. It also defines an inner interface Chain that provides access to the ongoing HeapAnalysisJob and allows for continuing the analysis.

Methods

intercept

This method is called to intercept the heap analysis process. It takes a Chain parameter and returns a HeapAnalysisJob.Result. This method allows for customization of the heap analysis by modifying or inspecting the ongoing HeapAnalysisJob and its result.

Classes

No classes are defined in this file.

package leakcanary

fun interface HeapAnalysisInterceptor {

  fun intercept(chain: Chain): HeapAnalysisJob.Result

  interface Chain {
    val job: HeapAnalysisJob

    fun proceed(): HeapAnalysisJob.Result
  }
}