Function Entry: MEM
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: MEM
Name
mem
Class
Function
Syntax
(mem)
Arguments and Values
None.
Description
Displays AutoLISP memory-usage statistics: garbage-collection counts and timings, dynamic-segment information (page size, used / free pages, largest contiguous free area, segment count), and per-type allocation (LISP stacks, bytecode area, CONS memory, strings, etc.). All heap memory is global; every AutoCAD document shares the same heap.
Return Values
Always returns nil. The statistics are written to the command line as a side effect.
Side Effects
Writes a multi-line memory report to the AutoCAD command line.
Examples
A typical
(mem)invocation prints lines such as:; GC calls: 23; GC run time: 298 ms Dynamic memory segments statistic: PgSz Used Free FMCL Segs Type 512 79 48 48 1 lisp stacks 256 3706 423 142 16 bytecode area 4096 320 10 10 22 CONS memory ...
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible (the report content is implementation-defined).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [mem (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-F4AEB953-2117-4BF2-8056-EA1384AC3FFF.htm)
- Status: documented (Phase 3 body fill).