aboutsummaryrefslogtreecommitdiffstats
path: root/src/profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiler.c')
-rw-r--r--src/profiler.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/profiler.c b/src/profiler.c
index 7330f8861fc..6d97107c9f5 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -54,8 +54,7 @@ make_log (EMACS_INT heap_size, EMACS_INT max_stack_depth)
54 with the vectors we'll put in them. */ 54 with the vectors we'll put in them. */
55 ptrdiff_t i = ASIZE (h->key_and_value) >> 1; 55 ptrdiff_t i = ASIZE (h->key_and_value) >> 1;
56 while (i > 0) 56 while (i > 0)
57 set_hash_key_slot (h, --i, 57 set_hash_key_slot (h, --i, make_nil_vector (max_stack_depth));
58 Fmake_vector (make_fixnum (max_stack_depth), Qnil));
59 return log; 58 return log;
60} 59}
61 60
@@ -422,7 +421,7 @@ Before returning, a new log is allocated for future samples. */)
422 cpu_log = (profiler_cpu_running 421 cpu_log = (profiler_cpu_running
423 ? make_log (profiler_log_size, profiler_max_stack_depth) 422 ? make_log (profiler_log_size, profiler_max_stack_depth)
424 : Qnil); 423 : Qnil);
425 Fputhash (Fmake_vector (make_fixnum (1), QAutomatic_GC), 424 Fputhash (make_vector (1, QAutomatic_GC),
426 make_fixnum (cpu_gc_count), 425 make_fixnum (cpu_gc_count),
427 result); 426 result);
428 cpu_gc_count = 0; 427 cpu_gc_count = 0;