Function: profiler-memory-log
profiler-memory-log is a function defined in profiler.c.
Signature
(profiler-memory-log)
Documentation
Return the current memory profiler log.
The log is a hash-table mapping backtraces to counters which represent the amount of memory allocated at those points. Every backtrace is a vector of functions, where the last few elements may be nil.
If the profiler has not run since the last invocation of
profiler-memory-log(var)/profiler-memory-log(fun) (or was never run at all), return nil. If the
profiler is currently running, allocate a new log for future samples
before returning.
Source Code
// Defined in /usr/src/emacs/src/profiler.c
{
bool prof_mem = profiler_memory_running;
if (prof_mem)
Fprofiler_memory_stop ();
Lisp_Object ret = export_log (&memory);
if (prof_mem)
Fprofiler_memory_start ();
return ret;
}