summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/elp.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-10-18 10:40:08 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-10-18 10:40:08 +0200
commit8d086592c31e624d7e10e0becea1f08a004e2274 (patch)
treefa456a3d74d39703836497fe5980247a4089ce85 /lisp/emacs-lisp/elp.el
parent32df2034234056bf24312ef5883671b59a387520 (diff)
downloademacs-8d086592c31e624d7e10e0becea1f08a004e2274.tar.gz
emacs-8d086592c31e624d7e10e0becea1f08a004e2274.tar.bz2
emacs-8d086592c31e624d7e10e0becea1f08a004e2274.zip
Update elp-not-profilable
* lisp/emacs-lisp/elp.el (elp-not-profilable): Update list of denied functions (bug#40335).
Diffstat (limited to 'lisp/emacs-lisp/elp.el')
-rw-r--r--lisp/emacs-lisp/elp.el13
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el
index 8c33b7c9948..fde7947a273 100644
--- a/lisp/emacs-lisp/elp.el
+++ b/lisp/emacs-lisp/elp.el
@@ -202,14 +202,13 @@ This variable is set by the master function.")
(defvar elp-not-profilable
;; First, the functions used inside each instrumented function:
'(called-interactively-p
- ;; Then the functions used by the above functions. I used
- ;; (delq nil (mapcar (lambda (x) (and (symbolp x) (fboundp x) x))
- ;; (aref (symbol-function 'elp-wrapper) 2)))
- ;; to help me find this list.
- error call-interactively apply current-time
+ ;; (delq
+ ;; nil (mapcar
+ ;; (lambda (x) (and (symbolp x) (fboundp x) x))
+ ;; (aref (aref (aref (symbol-function 'elp--make-wrapper) 2) 1) 2)))
+ error apply current-time float-time time-subtract
;; Andreas Politz reports problems profiling these (Bug#4233):
- + byte-code-function-p functionp byte-code subrp
- indirect-function fboundp)
+ + byte-code-function-p functionp byte-code subrp fboundp)
"List of functions that cannot be profiled.
Those functions are used internally by the profiling code and profiling
them would thus lead to infinite recursion.")