diff options
| author | Stefan Monnier | 2026-01-13 13:41:55 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2026-01-20 16:09:22 -0500 |
| commit | 4150c2e22e93ca6bdf682b0067d430e412db3688 (patch) | |
| tree | d6679363f7600845facc7d6711440c1bd82c5887 /lisp/net/tramp-archive.el | |
| parent | 9ba2f13176a756030e4d8476436662d630447f65 (diff) | |
| download | emacs-master.tar.gz emacs-master.zip | |
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`.
Diffstat (limited to 'lisp/net/tramp-archive.el')
0 files changed, 0 insertions, 0 deletions