LeakDetector

interface LeakDetector

Watch references and detect when they leak.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun checkLeaks()

Trigger garbage collection and determine if any watched references have leaked per this instance's leak policy.

Link copied to clipboard
abstract fun watchReference(reference: Any, name: String)

Add reference as a watched instance that is expected to be garbage collected soon.