From e7033302aa4dfed30e2732a50e031afc2de5395c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 14 Aug 2024 08:48:43 -0400 Subject: [PATCH] Fix dumping of Lisp profiles * lisp/profiler.el (profiler-fixup-entry): New function. (profiler-fixup-backtrace): Use it. (Bug#72559) (cherry picked from commit 7b752a93a46bca1ec11f00a47a85aebcecb69980) --- lisp/profiler.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/profiler.el b/lisp/profiler.el index eb72f128c07..a5d62e20e3a 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el @@ -103,8 +103,13 @@ ;;; Backtraces +(defun profiler-fixup-entry (entry) + (if (symbolp entry) + entry + (substring-no-properties (help-fns-function-name entry)))) + (defun profiler-fixup-backtrace (backtrace) - (apply #'vector (mapcar #'help-fns-function-name backtrace))) + (apply #'vector (mapcar #'profiler-fixup-entry backtrace))) ;;; Logs -- 2.39.2