Add docstring to doom/toggle-profiler
This commit is contained in:
parent
3a6388bb68
commit
e2a6028643
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ selection of all minor-modes, active or not."
|
||||||
(defvar doom--profiler nil)
|
(defvar doom--profiler nil)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/toggle-profiler ()
|
(defun doom/toggle-profiler ()
|
||||||
|
"Toggle the Emacs profiler. Starts it if isn't running. Stops it and pops up
|
||||||
|
the profiling report otherwise."
|
||||||
(interactive)
|
(interactive)
|
||||||
(if (not doom--profiler)
|
(if (not doom--profiler)
|
||||||
(profiler-start 'cpu+mem)
|
(profiler-start 'cpu+mem)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue