Add docstring to doom/toggle-profiler

This commit is contained in:
Henrik Lissner
2018-02-03 22:39:31 -05:00
parent 3a6388bb68
commit e2a6028643

View File

@ -80,6 +80,8 @@ selection of all minor-modes, active or not."
(defvar doom--profiler nil)
;;;###autoload
(defun doom/toggle-profiler ()
"Toggle the Emacs profiler. Starts it if isn't running. Stops it and pops up
the profiling report otherwise."
(interactive)
(if (not doom--profiler)
(profiler-start 'cpu+mem)