//leakcanary-repo/shark/ReferenceMatcher
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¶
LibraryLeakReferenceMatcher |
IgnoredReferenceMatcher |
Types¶
Name | Summary |
---|---|
Companion | [jvm] object Companion |
ListBuilder | [jvm] fun interface ListBuilder |
Properties¶
Name | Summary |
---|---|
pattern | [jvm] abstract val pattern: ReferencePattern The pattern that references will be matched against. |
patternApplies | [jvm] 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. |