Function: elp-instrument-package
elp-instrument-package is an autoloaded, interactive and byte-compiled
function defined in elp.el.gz.
Signature
(elp-instrument-package PREFIX)
Documentation
Instrument for profiling, all functions which start with PREFIX.
For example, to instrument all ELP functions, do the following:
M-x elp-instrument-package (elp-instrument-package) RET elp- RET
Note that only functions that are currently loaded will be instrumented. If you run this function, and then later load further functions that start with PREFIX, they will not be instrumented automatically.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/elp.el.gz
;;;###autoload
(defun elp-instrument-package (prefix)
"Instrument for profiling, all functions which start with PREFIX.
For example, to instrument all ELP functions, do the following:
\\[elp-instrument-package] RET elp- RET
Note that only functions that are currently loaded will be
instrumented. If you run this function, and then later load
further functions that start with PREFIX, they will not be
instrumented automatically."
(interactive
(list (completing-read "Prefix of package to instrument: "
obarray 'elp-profilable-p)))
(if (zerop (length prefix))
(error "Instrumenting all Emacs functions would render Emacs unusable"))
(elp-instrument-list
(mapcar
'intern
(all-completions prefix obarray 'elp-profilable-p))))