referrers property

Uint32List referrers

A list of indices into HeapSnapshotGraph.objects.

Implementation

Uint32List get referrers {
  final referrers = _graph._referrers;
  final firstReferrers = _graph._firstReferrers;

  if (referrers == null || firstReferrers == null) {
    throw StateError('Referrers are not available in this snapshot. Pass'
        ' `calculateReferrers: true` when taking snapshot to calculate referrers.');
  }

  return Uint32List.sublistView(
      referrers, firstReferrers[_oid], firstReferrers[_oid + 1]);
}