profiler-running-p

profiler-running-p is a compiled Lisp function in `profiler.el'.

(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).