Package leakcanary

Types

Link copied to clipboard
object AndroidDebugHeapDumper : HeapDumper

Dumps the Android heap using Debug.dumpHprofData.

Link copied to clipboard
object BackgroundThreadHeapAnalyzer : EventListener

Starts heap analysis on a background HandlerThread when receiving a HeapDump event.

Link copied to clipboard
fun interface EventListener
Link copied to clipboard
fun interface HeapDumper
Link copied to clipboard
class LazyForwardingEventListener(lazyEventListener: () -> EventListener) : EventListener

Forwards events to the EventListener provided by lazyEventListener which is evaluated lazily, when the first comes in.

Link copied to clipboard
object LeakCanary

The entry point API for LeakCanary. LeakCanary builds on top of AppWatcher. AppWatcher notifies LeakCanary of retained instances, which in turns dumps the heap, analyses it and publishes the results.

Link copied to clipboard
object LogcatEventListener : EventListener
Link copied to clipboard
object NotificationEventListener : EventListener
Link copied to clipboard
object RemoteWorkManagerHeapAnalyzer : EventListener

When receiving a HeapDump event, starts a WorkManager worker that performs heap analysis in a dedicated :leakcanary process

Link copied to clipboard
object ToastEventListener : EventListener
Link copied to clipboard
object TvEventListener : EventListener
Link copied to clipboard
object WorkManagerHeapAnalyzer : EventListener

When receiving a HeapDump event, starts a WorkManager worker that performs heap analysis.