Function: elp-set-master

elp-set-master is an interactive and byte-compiled function defined in elp.el.gz.

Signature

(elp-set-master FUNSYM)

Documentation

Set the master function for profiling.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/elp.el.gz
(defun elp-set-master (funsym)
  "Set the master function for profiling."
  (interactive
   (list
    (intern
     (let ((default (if elp-master (symbol-name elp-master))))
       (completing-read (format-prompt "Master function" default)
                        obarray #'elp--instrumented-p t nil nil default)))))
  ;; When there's a master function, recording is turned off by default.
  (setq elp-master funsym
	elp-record-p nil)
  ;; Make sure master function is instrumented.
  (or (elp--instrumented-p funsym)
      (elp-instrument-function funsym)))