Function: profiler-running-p
profiler-running-p is a byte-compiled function defined in
profiler.el.gz.
Signature
(profiler-running-p &optional MODE)
Documentation
Return non-nil if the profiler is running.
Optional argument MODE means only check for the specified mode (cpu or mem).
Source Code
;; Defined in /usr/src/emacs/lisp/profiler.el.gz
(defun profiler-running-p (&optional mode)
"Return non-nil if the profiler is running.
Optional argument MODE means only check for the specified mode (cpu or mem)."
(cond ((eq mode 'cpu) (and (fboundp 'profiler-cpu-running-p)
(profiler-cpu-running-p)))
((eq mode 'mem) (profiler-memory-running-p))
(t (or (profiler-running-p 'cpu)
(profiler-running-p 'mem)))))