HeapAnalysisJob

interface HeapAnalysisJob

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

Types

Link copied to clipboard
sealed class Result

Functions

Link copied to clipboard
abstract fun cancel(cancelReason: String)

Cancels the job, if possible. Jobs that are already complete cannot be canceled.

Link copied to clipboard
abstract fun execute(): HeapAnalysisJob.Result

Starts the analysis job immediately, and blocks until a result is available.

Properties

Link copied to clipboard
abstract val canceled: Boolean

true of cancel has been called or if an HeapAnalysisInterceptor has returned Result.Canceled from HeapAnalysisInterceptor.intercept.

Link copied to clipboard
abstract val context: JobContext

In memory store, mutable and thread safe. This allows passing data to interceptors.

Link copied to clipboard
abstract val executed: Boolean

true if execute has been called. It is an error to call execute more than once.