elisp: Memory Usage
E.5 Memory Usage
================
These functions and variables give information about the total amount of
memory allocation that Emacs has done, broken down by data type. Note
the difference between these and the values returned by
‘garbage-collect’; those count objects that currently exist, but these
count the number or size of all allocations, including those for objects
that have since been freed.
-- Variable: cons-cells-consed
The total number of cons cells that have been allocated so far in
this Emacs session.
-- Variable: floats-consed
The total number of floats that have been allocated so far in this
Emacs session.
-- Variable: vector-cells-consed
The total number of vector cells that have been allocated so far in
this Emacs session.
-- Variable: symbols-consed
The total number of symbols that have been allocated so far in this
Emacs session.
-- Variable: string-chars-consed
The total number of string characters that have been allocated so
far in this session.
-- Variable: misc-objects-consed
The total number of miscellaneous objects that have been allocated
so far in this session. These include markers and overlays, plus
certain objects not visible to users.
-- Variable: intervals-consed
The total number of intervals that have been allocated so far in
this Emacs session.
-- Variable: strings-consed
The total number of strings that have been allocated so far in this
Emacs session.