Skip to content
🤔 Documentation issue? Report it

//leakcanary/leakcanary/HeapAnalysisJob

HeapAnalysisJob

interface HeapAnalysisJob

A HeapAnalysisJob represents a single prepared request to analyze the heap. It cannot be executed twice.

Types

Name Summary
Result sealed class Result

Functions

Name Summary
cancel abstract fun cancel(cancelReason: String)
Cancels the job, if possible. Jobs that are already complete cannot be canceled.
execute abstract fun execute(): HeapAnalysisJob.Result
Starts the analysis job immediately, and blocks until a result is available.

Properties

Name Summary
canceled abstract val canceled: Boolean
true of cancel has been called or if an HeapAnalysisInterceptor has returned Result.Canceled from HeapAnalysisInterceptor.intercept.
context abstract val context: JobContext
In memory store, mutable and thread safe. This allows passing data to interceptors.
executed abstract val executed: Boolean
true if execute has been called. It is an error to call execute more than once.