ReferencePattern

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class InstanceFieldPattern(val className: String, val fieldName: String) : ReferencePattern

Matches instances field references, identified by className and fieldName.

Link copied to clipboard
data class JavaLocalPattern(val threadName: String) : ReferencePattern

Matches local references held in the stack of frames of a given thread, identified by its name.

Link copied to clipboard

Matches native global variables (also known as jni global gc roots) that reference Java objects. The class name will match against classes, instances and object arrays with a matching class name.

Link copied to clipboard
data class StaticFieldPattern(val className: String, val fieldName: String) : ReferencePattern

Matches static field references, identified by className and fieldName.

Functions

Link copied to clipboard
fun ReferencePattern.ignored(patternApplies: (HeapGraph) -> Boolean = ALWAYS): IgnoredReferenceMatcher
Link copied to clipboard
fun ReferencePattern.leak(description: String = "", patternApplies: (HeapGraph) -> Boolean = ALWAYS): LibraryLeakReferenceMatcher