ObjectDominators

class ObjectDominators

Exposes high level APIs to compute and render a dominator tree. This class needs to be public to be used by other LeakCanary modules but is internal and its API might change at any moment.

Note that the exposed APIs are not optimized for speed, memory or IO.

Eventually this capability should become part of the Shark public APIs, please open an issue if you'd like to use this directly.

Constructors

ObjectDominators
Link copied to clipboard
fun ObjectDominators()

Functions

renderDominatorTree
Link copied to clipboard
fun renderDominatorTree(graph: HeapGraph, ignoredRefs: List<IgnoredReferenceMatcher>, minRetainedSize: Int, threadName: String? = null, printStringContent: Boolean = false): String