• Estimates the in-memory footprint of an AcDbDatabase by walking its ownership graph and applying V8-inspired size heuristics.

    The estimate is reproducible and suitable for comparing drawings. It is not an exact Chrome / V8 heap retained size; expect roughly ±20–30% versus DevTools heap snapshots. Rendering GPU buffers and converter worker / WASM heaps are not included.

    Parameters

    Returns AcDbMemoryEstimate

    Structured estimate with category and entity-type breakdowns.

    const report = acdbEstimateDatabaseMemory(database)
    console.log(acdbFormatMemoryEstimate(report))