Function: elp-reset-function

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

Signature

(elp-reset-function FUNSYM)

Documentation

Reset the profiling information for FUNSYM.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/elp.el.gz
(defun elp-reset-function (funsym)
  "Reset the profiling information for FUNSYM."
  (interactive "aFunction to reset: ")
  (let ((info (get funsym elp-timer-info-property)))
    (or info
	(error "%s is not instrumented for profiling" funsym))
    (aset info 0 0)			;reset call counter
    (aset info 1 0.0)			;reset total time
    ;; don't muck with aref 2 as that is the old symbol definition
    ))