Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/ReferencePattern/NativeGlobalVariablePattern

NativeGlobalVariablePattern

[jvm]\ data class NativeGlobalVariablePattern(val className: String) : ReferencePattern

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.

Constructors

NativeGlobalVariablePattern [jvm]
constructor(className: String)

Types

Name Summary
Companion [jvm]
object Companion

Functions

Name Summary
ignored [jvm]
fun ReferencePattern.ignored(patternApplies: (HeapGraph) -> Boolean = ALWAYS): IgnoredReferenceMatcher
leak [jvm]
fun ReferencePattern.leak(description: String = "", patternApplies: (HeapGraph) -> Boolean = ALWAYS): LibraryLeakReferenceMatcher
toString [jvm]
open override fun toString(): String

Properties

Name Summary
className [jvm]
val className: String