snapshot property

List<Allocation> get snapshot

Returns a snapshot of currently tracked allocations.

The returned list is immutable and represents the registry state at the time of access.

Implementation

static List<Allocation> get snapshot {
  final registry = _registry;
  if (registry.isEmpty) return const [];
  return .unmodifiable(registry.values);
}