Structured result returned by acdbEstimateDatabaseMemory.

Categories typically include sysvars, tables, entities, objects, handleRegistry, xdata, and optionally transaction / events.

interface AcDbMemoryEstimate {
    byCategory: Record<string, AcDbMemoryEstimateBucket>;
    byEntityType: Record<string, AcDbMemoryEstimateBucket>;
    entityCount: number;
    objectCount: number;
    totalBytes: number;
}

Properties

byCategory: Record<string, AcDbMemoryEstimateBucket>

Breakdown by high-level ownership category (for example entities, tables, handleRegistry).

byEntityType: Record<string, AcDbMemoryEstimateBucket>

Breakdown by entity type name (for example Line, Polyline, Hatch).

entityCount: number

Number of AcDbEntity instances visited.

objectCount: number

Number of distinct JS objects visited (excluding primitives).

totalBytes: number

Sum of all category bytes.