Add doom/toggle-profiler
This commit is contained in:
parent
96998e40d3
commit
7029d287e5
1 changed files with 10 additions and 0 deletions
|
@ -79,3 +79,13 @@ selection of all minor-modes, active or not."
|
||||||
(warn "Something went wrong.\n\n%s" (pp-to-string status))
|
(warn "Something went wrong.\n\n%s" (pp-to-string status))
|
||||||
(message "Your trust roots are set up properly.\n\n%s" (pp-to-string status))
|
(message "Your trust roots are set up properly.\n\n%s" (pp-to-string status))
|
||||||
t)))))
|
t)))))
|
||||||
|
|
||||||
|
(defvar doom--profiler nil)
|
||||||
|
;;;###autoload
|
||||||
|
(defun doom/toggle-profiler ()
|
||||||
|
(interactive)
|
||||||
|
(if (not doom--profiler)
|
||||||
|
(profiler-start 'cpu+mem)
|
||||||
|
(profiler-report)
|
||||||
|
(profiler-stop))
|
||||||
|
(setq doom--profiler (not doom--profiler)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue