emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ee848be84c6: Fix compilation error in profiler.c


From: Eli Zaretskii
Subject: master ee848be84c6: Fix compilation error in profiler.c
Date: Fri, 27 Oct 2023 11:26:46 -0400 (EDT)

branch: master
commit ee848be84c67d21f1a64167b265c87533212e375
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix compilation error in profiler.c
    
    * src/profiler.c (memory): Declare outside of the
    PROFILER_CPU_SUPPORT conditional.  (Bug#66774)
---
 src/profiler.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/profiler.c b/src/profiler.c
index 6217071ef9c..199cf368a55 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -235,9 +235,6 @@ static enum profiler_cpu_running
 /* Hash-table log of CPU profiler.  */
 static struct profiler_log cpu;
 
-/* Hash-table log of Memory profiler.  */
-static struct profiler_log memory;
-
 /* The current sampling interval in nanoseconds.  */
 static EMACS_INT current_sampling_interval;
 
@@ -456,6 +453,9 @@ Before returning, a new log is allocated for future 
samples.  */)
 
 /* Memory profiler.  */
 
+/* Hash-table log of Memory profiler.  */
+static struct profiler_log memory;
+
 /* True if memory profiler is running.  */
 bool profiler_memory_running;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]