0

Say I create a quick keyboard macro, but find that executing it in quick succession is extremely slow. How can I determine in what functions or packages this command is spending most of its time? Maybe some convenient help binding like C-h % which will then display the performance details for the next command executed.

1 Answer 1

2

Emacs includes a CPU profiler for this purpose.

C-hig (elisp)Profiling RET

2
  • Should this binding run info from info.el?
    – Dodgie
    Commented May 31, 2018 at 23:26
  • Yes, that will display the node in question from the elisp manual.
    – phils
    Commented Jun 1, 2018 at 0:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.