aliveObjectsCount property

int get aliveObjectsCount

The number of native objects the SDK currently holds a strong reference to.

Each tracked Dart wrapper maps to one live native handle. A count that grows steadily across repeated create/dispose cycles indicates handles that are neither disposed nor garbage-collected, i.e. a native leak.

Returns 0 before the SDK is initialized, after it is released, and on web.

Used for debugging and leak monitoring.

Implementation

static int get aliveObjectsCount => GemKitPlatform.instance.aliveObjectsCount;