PrioritizingShortestPathFinder

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

Link copied to clipboard
interface Event
Link copied to clipboard
class Factory(listener: PrioritizingShortestPathFinder.Event.Listener, referenceReaderFactory: ReferenceReader.Factory<HeapObject>, gcRootProvider: GcRootProvider, computeRetainedHeapSize: Boolean) : ShortestPathFinder.Factory

Functions

Link copied to clipboard
open override fun findShortestPathsFromGcRoots(leakingObjectIds: Set<Long>): PathFindingResults