Subject: bug#43406: Emacs 27.1 memory consumption grows indefinitely

From: Ludovic Courtès <[email-masked]>
Date: Fri, 18 Sep 2020 13:47:21 +0200

Hi Eli,

Eli Zaretskii via web <[email-masked]> skribis:

> Please don't use "memory profile" as any indication of the Emacs memory usage: it is entirely unrelated to memory.
>
> The Emacs profiler only profiles CPU usage.  It samples the PC register using a special signal (SIGPROF), which is the usual method of sampling CPU in profilers.  For those systems which don't have SIGPROF, it can fall back on sampling the CPU whenever Emacs calls one of the memory allocation functions -- this is called "mem" profiling.
>
> So the "memory" profiles shown here don't show memory usage.

Understood, that’s the same thing as Guile’s ‘gcprof’.  :-)

Thanks for your feedback,
Ludo’.