export class ECSInspector {
    snapshot(world) {
        const entityCount = typeof world.entityCount === "number"
            ? world.entityCount
            : world.entities?.().length ?? 0;
        return {
            entityCount,
            ...(world.profiler ? { profiler: world.profiler.snapshot() } : {})
        };
    }
}
//# sourceMappingURL=ECSInspector.js.map