1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 12:03:55 -08:00
emacs/doc
Stefan Monnier 4150c2e22e (garbage-collect-heapsize): New function
The info returned from `garbage-collect` is really handy to
track the evolution of the heap size, but sadly it's available only
at the cost of running a full GC, which has two big downsides:
it's slow, it affects what we're measuring, and it can't be used
in `post-gc-hook`.
So, this patch makes it available without running the GC.

* src/alloc.c (Fgarbage_collect_heapsize): New function, extracted from
`Fgarbage_collect`.
(Fgarbage_collect): Use it.
(syms_of_alloc): defsubr it.

* doc/lispref/internals.texi (Garbage Collection): Extract
documentation for it from that of `garbage-collect`.
2026-01-20 16:09:22 -05:00
..
emacs Automatically detect the VC outgoing base (bug#80006) 2026-01-17 17:17:51 +00:00
lispintro ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lispref (garbage-collect-heapsize): New function 2026-01-20 16:09:22 -05:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc Update from Gnulib by running admin/merge-gnulib 2026-01-19 12:49:16 -08:00
translations ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00