diff options
| author | Stefan Monnier | 2024-08-14 08:48:43 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-17 12:50:26 +0300 |
| commit | 7b752a93a46bca1ec11f00a47a85aebcecb69980 (patch) | |
| tree | 41b65a39194bce939d45bf1bcae57fecf2dfcde1 | |
| parent | bfe07eca5981fe80ddc8a54b18dd9340ad5ec2be (diff) | |
| download | emacs-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.el | 7 |
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 |