LeakTracer.kt
TLDR
This file defines the LeakTracer
interface and its associated Factory
interface.
Methods
traceObjects
This method takes a set of object IDs as input and returns LeaksAndUnreachableObjects
. It is used to trace objects and identify any leaks.
Classes
No classes are defined in this file.
package shark
fun interface LeakTracer {
// TODO What should we do about exceptions here? union error or exception?
fun traceObjects(objectIds: Set<Long>): LeaksAndUnreachableObjects
fun interface Factory {
fun createFor(heapGraph: HeapGraph): LeakTracer
}
}