ReferenceMatcher

sealed class ReferenceMatcher

Used to pattern match known patterns of references in the heap, either to ignore them (IgnoredReferenceMatcher) or to mark them as library leaks (LibraryLeakReferenceMatcher), which lowers their traversal priority when exploring the heap.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface ListBuilder

Properties

Link copied to clipboard

The pattern that references will be matched against.

Link copied to clipboard
abstract val patternApplies: (HeapGraph) -> Boolean

Whether the identified leak may exist in the provided HeapGraph. Defaults to true. If the heap dump comes from a VM that runs a different version of the library that doesn't have the leak, then this should return false.