HeapAnalysisJob

interface HeapAnalysisJob

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

Types

Result
Link copied to clipboard
sealed class Result

Functions

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

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

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

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

Properties

canceled
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.

context
Link copied to clipboard
abstract val context: JobContext

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

executed
Link copied to clipboard
abstract val executed: Boolean

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