Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/PrioritizingShortestPathFinder

PrioritizingShortestPathFinder

[jvm]\ class PrioritizingShortestPathFinder : ShortestPathFinder

Not thread safe.

Finds the shortest path from leaking references to a gc root, first ignoring references identified as "to visit last" and then visiting them as needed if no path is found.

Types

Name Summary
Event [jvm]
interface Event
Factory [jvm]
class Factory(listener: PrioritizingShortestPathFinder.Event.Listener, referenceReaderFactory: ReferenceReader.Factory<HeapObject>, gcRootProvider: GcRootProvider, computeRetainedHeapSize: Boolean) : ShortestPathFinder.Factory

Functions

Name Summary
findShortestPathsFromGcRoots [jvm]
open override fun findShortestPathsFromGcRoots(leakingObjectIds: Set<Long>): PathFindingResults