Function: memory-use-counts

memory-use-counts is a function defined in alloc.c.

Signature

(memory-use-counts)

Documentation

Return a list of counters that measure how much consing there has been.

Each of these counters increments for a certain kind of object. The counters wrap around from the largest positive integer to zero. Garbage collection does not decrease them. The elements of the value are as follows:
  (CONSES FLOATS VECTOR-CELLS SYMBOLS STRING-CHARS INTERVALS STRINGS)
All are in units of 1 = one object consed except for VECTOR-CELLS and STRING-CHARS, which count the total length of objects consed. Frames, windows, buffers, and subprocesses count as vectors
  (but the contents of a buffer's text do not count here).

View in manual

Source Code

// Defined in /usr/src/emacs/src/alloc.c
{
  return  list (make_int (cons_cells_consed),
		make_int (floats_consed),
		make_int (vector_cells_consed),
		make_int (symbols_consed),
		make_int (string_chars_consed),
		make_int (intervals_consed),
		make_int (strings_consed));
}