Last active
September 11, 2023 18:35
-
-
Save fipar/1a877880c3879b734e6715b7d4fb3b7a to your computer and use it in GitHub Desktop.
profiler-hydra.el
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "s-p") 'hydra-profiler/body) | |
(defhydra hydra-profiler (:hint none :exit t) | |
" | |
Hydra Profiler (_q_uit) | |
_s_ start profiler | |
_x_ reset profiler | |
_k_ stop profiler | |
_r_ profiler report | |
" | |
("q" nil) | |
("s" (profiler-start 'cpu+mem)) | |
("x" (profiler-reset)) | |
("k" (profiler-stop)) | |
("r" (profiler-report))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment