]> git.eshelyaron.com Git - emacs.git/commit
src/profiler.c: Keep track of allocations during GC
authorEli Zaretskii <eliz@gnu.org>
Fri, 10 Mar 2023 19:54:52 +0000 (14:54 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 10 Mar 2023 19:54:52 +0000 (14:54 -0500)
commit9a5f2ac97ecd5f434690f04ed0b6573d2dd58148
treeca954e389a06235afaf82aabca342afcbac39608
parentd5d2959217f7afc99f2636cafdb8ffe00e14dfae
src/profiler.c: Keep track of allocations during GC

Cargo-cult the `cpu_gc_count` code to `memory_gc_count`.

* src/profiler.c (mem_gc_count): New var.
(Fprofiler_memory_start): Initialize it.
(Fprofiler_memory_log): Increment it.
(Fprofiler_memory_log): Use it.
src/profiler.c