aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2024-08-14 08:48:43 -0400
committerEli Zaretskii2024-08-17 12:50:26 +0300
commit7b752a93a46bca1ec11f00a47a85aebcecb69980 (patch)
tree41b65a39194bce939d45bf1bcae57fecf2dfcde1
parentbfe07eca5981fe80ddc8a54b18dd9340ad5ec2be (diff)
downloademacs-7b752a93a46bca1ec11f00a47a85aebcecb69980.tar.gz
emacs-7b752a93a46bca1ec11f00a47a85aebcecb69980.zip
Fix dumping of Lisp profiles
* lisp/profiler.el (profiler-fixup-entry): New function. (profiler-fixup-backtrace): Use it. (Bug#72559)
-rw-r--r--lisp/profiler.el7
1 files changed, 6 insertions, 1 deletions
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 @@
103 103
104;;; Backtraces 104;;; Backtraces
105 105
106(defun profiler-fixup-entry (entry)
107 (if (symbolp entry)
108 entry
109 (substring-no-properties (help-fns-function-name entry))))
110
106(defun profiler-fixup-backtrace (backtrace) 111(defun profiler-fixup-backtrace (backtrace)
107 (apply #'vector (mapcar #'help-fns-function-name backtrace))) 112 (apply #'vector (mapcar #'profiler-fixup-entry backtrace)))
108 113
109 114
110;;; Logs 115;;; Logs