LeakingObjectFinder.kt
TLDR
The LeakingObjectFinder
interface in the provided file is responsible for finding objects that are leaking in a heap graph and returning their object IDs.
Methods
findLeakingObjectIds
This method takes a HeapGraph
as input and returns a set of object IDs for the objects that are leaking. It performs the task of finding the leaking objects in the heap graph.
Classes
package shark
/**
* Finds the objects that are leaking, for which Shark will compute
* leak traces.
*/
fun interface LeakingObjectFinder {
/**
* For a given heap graph, returns a set of object ids for the objects that are leaking.
*/
fun findLeakingObjectIds(graph: HeapGraph): Set<Long>
}