Event
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
Dumping Heap
Link copied to clipboard
Sent from the "LeakCanary-Heap-Dump" HandlerThread.
Heap Analysis Done
Link copied to clipboard
Sent from the thread performing the analysis.
Heap Analysis Progress
Link copied to clipboard
class HeapAnalysisProgress(uniqueId: String, step: OnAnalysisProgressListener.Step, progressPercent: Double) : EventListener.Event
Content copied to clipboard
progressPercent is a value between 0..1
Heap Dump Failed
Link copied to clipboard
class HeapDumpFailed(uniqueId: String, exception: Throwable, willRetryLater: Boolean) : EventListener.Event
Content copied to clipboard
Sent from the "LeakCanary-Heap-Dump" HandlerThread.
Properties
Inheritors
DumpingHeap
Link copied to clipboard
HeapDump
Link copied to clipboard
HeapDumpFailed
Link copied to clipboard
HeapAnalysisProgress
Link copied to clipboard
HeapAnalysisDone
Link copied to clipboard