Lines Matching defs:master
60 ;; You can also designate a `master' function. Profiling times will
62 ;; this master function. Thus, if you have some defuns like:
69 ;; but only during execution of bar, make bar the master. The call of
71 ;; elp-set-master and M-x elp-unset-master to utilize this feature.
72 ;; Only one master function can be set at a time.
94 ;; elp-set-master
95 ;; elp-unset-master
205 This variable is set by the master function.")
207 (defvar elp-master nil
323 ;; if the function was the master, reset the master
324 (if (eq funsym elp-master)
325 (setq elp-master nil
407 (defun elp-set-master (funsym)
408 "Set the master function for profiling."
410 ;; when there's a master function, recording is turned off by
412 (setq elp-master funsym
414 ;; make sure master function is instrumented
418 (defun elp-unset-master ()
419 "Unsets the master function."
421 ;; when there's no master function, recording is turned on by default.
422 (setq elp-master nil
436 ;; turn on recording if this is the master function
437 (if (and elp-master
438 (eq funsym elp-master))
470 ;; turn off recording if this is the master function
471 (if (and elp-master
472 (eq funsym elp-master))