Function: profiler-stop
profiler-stop is an interactive and byte-compiled function defined in
profiler.el.gz.
Signature
(profiler-stop)
Documentation
Stop started profilers. Profiler logs will be kept.
Probably introduced at or before Emacs version 24.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/profiler.el.gz
(defun profiler-stop ()
"Stop started profilers. Profiler logs will be kept."
(interactive)
(when (and (fboundp 'profiler-cpu-running-p)
(profiler-cpu-running-p))
(setq profiler-cpu-log (profiler-cpu-log)))
(when (profiler-memory-running-p)
(setq profiler-memory-log (profiler-memory-log)))
(let ((cpu (when (fboundp 'profiler-cpu-stop) (profiler-cpu-stop)))
(mem (profiler-memory-stop)))
(message "%s profiler stopped"
(cond ((and mem cpu) "CPU and memory")
(mem "Memory")
(cpu "CPU")
(t "No")))))