Event

sealed class Event : Serializable

Note: Event is Serializable for convenience but we currently make no guarantee that the Serialization is backward / forward compatible across LeakCanary versions, so plan accordingly. This is convenient for passing events around processes, and shouldn't be used to store them.

Types

Link copied to clipboard
class DumpingHeap(val uniqueId: String) : EventListener.Event

Sent from the "LeakCanary-Heap-Dump" HandlerThread.

Link copied to clipboard
sealed class HeapAnalysisDone<T : HeapAnalysis> : EventListener.Event

Sent from the thread performing the analysis.

Link copied to clipboard
class HeapAnalysisProgress(    val uniqueId: String,     val step: OnAnalysisProgressListener.Step,     val progressPercent: Double) : EventListener.Event

progressPercent is a value between 0..1

Link copied to clipboard
class HeapDump(    val uniqueId: String,     val file: File,     val durationMillis: Long,     val reason: String) : EventListener.Event

Sent from the "LeakCanary-Heap-Dump" HandlerThread.

Link copied to clipboard
class HeapDumpFailed(    val uniqueId: String,     val exception: Throwable,     val willRetryLater: Boolean) : EventListener.Event

Sent from the "LeakCanary-Heap-Dump" HandlerThread.

Properties

Link copied to clipboard
val uniqueId: String

Unique identifier for a related chain of event. The identifier for the events that run before HeapDump gets reset right before HeapDump is sent.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard