Skip to content

Instantly share code, notes, and snippets.

@fipar
Last active September 11, 2023 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fipar/1a877880c3879b734e6715b7d4fb3b7a to your computer and use it in GitHub Desktop.
Save fipar/1a877880c3879b734e6715b7d4fb3b7a to your computer and use it in GitHub Desktop.
profiler-hydra.el
(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