//shark-graph/shark/HprofHeapGraph/gcRoots

gcRoots

[jvm]
open override val gcRoots: List<GcRoot>

All GC roots which type matches types known to this heap graph and which point to non null references. You can retrieve the object that a GC Root points to by calling findObjectById with GcRoot.id, however you need to first check that objectExists returns true because GC roots can point to objects that don't exist in the heap dump.