IgnoredReferenceMatcher

class IgnoredReferenceMatcher(val pattern: ReferencePattern, val patternApplies: (HeapGraph) -> Boolean = ALWAYS) : ReferenceMatcher

IgnoredReferenceMatcher should be used to match references that cannot ever create leaks. The shortest path finder will never go through matching references.

Constructors

Link copied to clipboard
constructor(pattern: ReferencePattern, patternApplies: (HeapGraph) -> Boolean = ALWAYS)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open override val pattern: ReferencePattern

The pattern that references will be matched against.

Link copied to clipboard
open override 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.